diff options
Diffstat (limited to 'src')
-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; } |