From 261b0263f34ffcbe439d68b2e901fd3abbfc1eaf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 23 Oct 2020 07:26:39 +0200 Subject: Re-add creators page --- plugins/Mangatown.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/Mangatown.hpp') diff --git a/plugins/Mangatown.hpp b/plugins/Mangatown.hpp index 10f2500..66d9d2a 100644 --- a/plugins/Mangatown.hpp +++ b/plugins/Mangatown.hpp @@ -13,14 +13,15 @@ namespace QuickMedia { PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override; PluginResult submit(const std::string &title, const std::string &url, std::vector &result_tabs) override; sf::Vector2i get_thumbnail_max_size() override { return sf::Vector2i(101, 141); }; - private: - bool extract_id_from_url(const std::string &url, std::string &manga_id) const; }; class MangatownChaptersPage : public MangaChaptersPage { public: MangatownChaptersPage(Program *program, std::string manga_name, std::string manga_url) : MangaChaptersPage(program, std::move(manga_name), std::move(manga_url)) {} PluginResult submit(const std::string &title, const std::string &url, std::vector &result_tabs) override; + protected: + bool extract_id_from_url(const std::string &url, std::string &manga_id) const override; + const char* get_service_name() const override { return "mangatown"; } }; class MangatownImagesPage : public MangaImagesPage { -- cgit v1.2.3