diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-06-07 05:06:35 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-06-07 05:06:35 +0200 |
commit | 31239d029e0449ca18b258aeacb46b45ee54aab0 (patch) | |
tree | 5f16d8b6eafaed9f384cbaf8de03ac3601f6f45f /src/plugins | |
parent | a0dbe64272d051671bc120b1845c7485264b097d (diff) |
mangatown: Use correct chapter names
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Mangatown.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/Mangatown.cpp b/src/plugins/Mangatown.cpp index 90db349..1954854 100644 --- a/src/plugins/Mangatown.cpp +++ b/src/plugins/Mangatown.cpp @@ -30,6 +30,13 @@ namespace QuickMedia { cleanup: quickmedia_html_search_deinit(&html_search); + + int chapter_num = result_items.size(); + for(auto &body_item : result_items) { + body_item->title = "Ch. " + std::to_string(chapter_num); + chapter_num--; + } + return result == 0 ? SearchResult::OK : SearchResult::ERR; } |