From 31239d029e0449ca18b258aeacb46b45ee54aab0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 7 Jun 2020 05:06:35 +0200 Subject: mangatown: Use correct chapter names --- src/plugins/Mangatown.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3