From ab36fbffef977b99cc03d0b77ac37bdc1b5705dc Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 14 Apr 2021 19:52:21 +0200 Subject: Rework manga plugins downloading.. preparing for parallel downloads --- include/QuickMedia.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/QuickMedia.hpp') diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 2877e0c..b387968 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -160,12 +160,14 @@ namespace QuickMedia { std::unordered_set watched_videos; AsyncTask search_suggestion_future; AsyncTask autocomplete_future; - AsyncTask image_download_future; + AsyncTask> image_download_future; std::thread image_upscale_thead; MessageQueue images_to_upscale_queue; std::vector image_upscale_status; std::string downloading_chapter_url; bool image_download_cancel = false; + std::future num_manga_pages_future; + int num_manga_pages = 0; int exit_code = 0; std::string resources_root; sf::Shader circle_mask_shader; -- cgit v1.2.3