aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-05 20:15:47 +0200
committerdec05eba <dec05eba@protonmail.com>2019-08-05 20:15:49 +0200
commit2b294258bbc89f1b49554468022a035782e49074 (patch)
tree33a5c0624d1bc4f9beef082988d84ab90a459f71 /plugins
parent5eb6e8a6ecd9907c422a052ed3fcd8381a375cd1 (diff)
Show current image / number of images for manga
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Manganelo.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Manganelo.hpp b/plugins/Manganelo.hpp
index 5e9382e..0f6f421 100644
--- a/plugins/Manganelo.hpp
+++ b/plugins/Manganelo.hpp
@@ -8,8 +8,10 @@ namespace QuickMedia {
SearchResult search(const std::string &url, std::vector<std::unique_ptr<BodyItem>> &result_items, Page &next_page) override;
SuggestionResult update_search_suggestions(const std::string &text, std::vector<std::unique_ptr<BodyItem>> &result_items) override;
ImageResult get_image_by_index(const std::string &url, int index, std::string &image_data);
+ ImageResult get_number_of_images(const std::string &url, int &num_images);
private:
- ImageResult get_image_urls_for_chapter(const std::string &url, std::vector<std::string> &urls);
+ // Caches url. If the same url is requested multiple times then the cache is used
+ ImageResult get_image_urls_for_chapter(const std::string &url);
private:
std::string last_chapter_url;
std::vector<std::string> last_chapter_image_urls;