aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-05-31 15:36:13 +0200
committerdec05eba <dec05eba@protonmail.com>2020-05-31 15:36:13 +0200
commit89c1a9ef17f2eb49d09e5e2b1459e1c58668ab6b (patch)
treeacf6bb24483e4ae6ba9881c486c932dd319a86e3 /src
parentc6ab527bf342ddbb78d37c07b69d8d104232514a (diff)
Only append chapter title to chapter number if not empty (mangadex)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Mangadex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp
index 235e709..0ef7e74 100644
--- a/src/plugins/Mangadex.cpp
+++ b/src/plugins/Mangadex.cpp
@@ -103,7 +103,7 @@ namespace QuickMedia {
Json::Value &chapter_title_json = chapter["title"];
std::string chapter_url = mangadex_url + "/chapter/" + chapter_id;
std::string chapter_name = std::string("Ch. ") + chapter_number_str;
- if(chapter_title_json.isString())
+ if(chapter_title_json.isString() && strlen(chapter_title_json.asCString()) > 0)
chapter_name += std::string(" - ") + chapter_title_json.asCString();
auto item = std::make_unique<BodyItem>(std::move(chapter_name));