aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-02-11 17:51:53 +0100
committerdec05eba <dec05eba@protonmail.com>2022-02-11 17:51:53 +0100
commitcc445c60d4806fb462a3efc27bf8d727176f77da (patch)
tree7774f114a333aac896b7405367b35548ceb629d8 /plugins
parent515477b5d597b807b27d2f95950b937ab8684c00 (diff)
Fix local manga not updating chapter images when going to next/previous manga (manual removal of cache is needed)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/LocalManga.hpp6
1 files changed, 2 insertions, 4 deletions
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<LocalMangaPage> 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<LocalMangaPage> pages;
};
} \ No newline at end of file