From 0c71b0a9deb822c2acb89efdc21397fc195e82bf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 9 Jan 2022 14:07:35 +0100 Subject: Mangadex fix search and images download after at-home endpoint update --- plugins/Mangadex.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'plugins') diff --git a/plugins/Mangadex.hpp b/plugins/Mangadex.hpp index b92489d..c9f9515 100644 --- a/plugins/Mangadex.hpp +++ b/plugins/Mangadex.hpp @@ -25,8 +25,8 @@ namespace QuickMedia { class MangadexChaptersPage : public MangaChaptersPage { public: - MangadexChaptersPage(Program *program, MangadexSearchPage *search_page, std::string manga_name, std::string manga_url, ChapterImageUrls chapter_image_urls) : - MangaChaptersPage(program, std::move(manga_name), std::move(manga_url)), search_page(search_page), chapter_image_urls(std::move(chapter_image_urls)) {} + MangadexChaptersPage(Program *program, MangadexSearchPage *search_page, std::string manga_name, std::string manga_url) : + MangaChaptersPage(program, std::move(manga_name), std::move(manga_url)), search_page(search_page) {} PluginResult submit(const std::string &title, const std::string &url, std::vector &result_tabs) override; PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override; const char* get_bookmark_name() const override { return "mangadex"; } @@ -35,7 +35,6 @@ namespace QuickMedia { const char* get_service_name() const override { return "mangadex"; } private: MangadexSearchPage *search_page; - ChapterImageUrls chapter_image_urls; }; class MangadexCreatorPage : public LazyFetchPage { @@ -52,8 +51,8 @@ namespace QuickMedia { class MangadexImagesPage : public MangaImagesPage { public: - MangadexImagesPage(Program *program, MangadexSearchPage *search_page, std::string manga_name, std::string chapter_id, std::string chapter_name, ChapterImageUrls *chapter_image_url_templates) : - MangaImagesPage(program, std::move(manga_name), std::move(chapter_name), std::move(chapter_id)), search_page(search_page), chapter_image_url_templates(chapter_image_url_templates) {} + MangadexImagesPage(Program *program, MangadexSearchPage *search_page, std::string manga_name, std::string chapter_id, std::string chapter_name) : + MangaImagesPage(program, std::move(manga_name), std::move(chapter_name), std::move(chapter_id)), search_page(search_page) {} 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 "mangadex"; } @@ -62,6 +61,5 @@ namespace QuickMedia { ImageResult get_image_urls_for_chapter(const std::string &url); private: MangadexSearchPage *search_page; - ChapterImageUrls *chapter_image_url_templates; }; } \ No newline at end of file -- cgit v1.2.3