aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-05-31 15:35:57 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:12:34 +0200
commitd4b3bb3a83e215052f14e3330e20e98ca9316517 (patch)
tree73074f0e5d1fd939e6b966d14109dd69962b7404 /plugins
parent5b337344d86d594bc4c8ab5979bc31110f62c4c7 (diff)
Only append title to chapter number if not empty (mangadex)
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/mangadex.py2
1 files changed, 1 insertions, 1 deletions
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: