From 1ba58ba74a767a91b28f44eb75db41455adcaa70 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 27 Apr 2021 14:00:35 +0200 Subject: Add authors page for mangakatana and mangatown, attempt to fix image loading getting stuck, misc fixed related to async in plugins --- src/plugins/MangaCombined.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/plugins/MangaCombined.cpp') diff --git a/src/plugins/MangaCombined.cpp b/src/plugins/MangaCombined.cpp index e6b8028..ea6188c 100644 --- a/src/plugins/MangaCombined.cpp +++ b/src/plugins/MangaCombined.cpp @@ -1,5 +1,4 @@ #include "../../plugins/MangaCombined.hpp" -#include "../../include/AsyncTask.hpp" namespace QuickMedia { static const int SEARCH_TIMEOUT_MILLISECONDS = 6000; @@ -75,7 +74,7 @@ namespace QuickMedia { } SearchResult MangaCombinedSearchPage::search(const std::string &str, BodyItems &result_items) { - std::vector>> search_threads; + search_threads.clear(); for(auto &search_page : search_pages) { search_threads.push_back(std::make_pair(&search_page, AsyncTask([&str, &search_page]() { BodyItems search_page_body_items; @@ -89,7 +88,7 @@ namespace QuickMedia { } PluginResult MangaCombinedSearchPage::get_page(const std::string &str, int page, BodyItems &result_items) { - std::vector>> search_threads; + search_threads.clear(); for(auto &search_page : search_pages) { search_threads.push_back(std::make_pair(&search_page, AsyncTask([&str, page, &search_page]() { BodyItems search_page_body_items; -- cgit v1.2.3-70-g09d2