From cc445c60d4806fb462a3efc27bf8d727176f77da Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 11 Feb 2022 17:51:53 +0100 Subject: Fix local manga not updating chapter images when going to next/previous manga (manual removal of cache is needed) --- plugins/LocalManga.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/LocalManga.hpp b/plugins/LocalManga.hpp index 27ee89d..d112892 100644 --- a/plugins/LocalManga.hpp +++ b/plugins/LocalManga.hpp @@ -46,8 +46,8 @@ namespace QuickMedia { class LocalMangaImagesPage : public MangaImagesPage { public: - LocalMangaImagesPage(Program *program, std::string manga_name, std::string chapter_name, std::string url, std::string thumbnail_url, std::vector pages) : - MangaImagesPage(program, std::move(manga_name), std::move(chapter_name), std::move(url), std::move(thumbnail_url)), pages(std::move(pages)) {} + LocalMangaImagesPage(Program *program, std::string manga_name, std::string chapter_name, std::string url, std::string thumbnail_url) : + MangaImagesPage(program, std::move(manga_name), std::move(chapter_name), std::move(url), std::move(thumbnail_url)) {} ImageResult get_number_of_images(int &num_images) override; ImageResult for_each_page_in_chapter(PageCallback callback) override; const char* get_service_name() const override { return "local-manga"; } @@ -55,7 +55,5 @@ namespace QuickMedia { bool is_local() override { return true; } private: ImageResult get_image_urls_for_chapter(const std::string &url); - private: - std::vector pages; }; } \ No newline at end of file -- cgit v1.2.3