From d4b3bb3a83e215052f14e3330e20e98ca9316517 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 31 May 2020 15:35:57 +0200 Subject: Only append title to chapter number if not empty (mangadex) --- plugins/mangadex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mangadex.py') diff --git a/plugins/mangadex.py b/plugins/mangadex.py index 05b045b..79b519d 100755 --- a/plugins/mangadex.py +++ b/plugins/mangadex.py @@ -109,7 +109,7 @@ def list_chapters(url, chapter_list_input): chapter_title = chapter.get("title") chapter_url = "https://mangadex.org/chapter/" + chapter_id chapter_name = "Ch. " + chapter_number_str - if chapter_title: + if chapter_title and len(chapter_title) > 0: chapter_name += " - " + chapter_title if chapter_title.lower().replace(" ", "") in seen_titles or chapter_url in seen_urls: -- cgit v1.2.3