diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-05-31 15:36:13 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-05-31 15:36:13 +0200 |
commit | 89c1a9ef17f2eb49d09e5e2b1459e1c58668ab6b (patch) | |
tree | acf6bb24483e4ae6ba9881c486c932dd319a86e3 | |
parent | c6ab527bf342ddbb78d37c07b69d8d104232514a (diff) |
Only append chapter title to chapter number if not empty (mangadex)
-rw-r--r-- | src/plugins/Mangadex.cpp | 2 |
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)); |