From d6131b8ba482414be76f2478aea90bd7a4a2379b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 14 Sep 2020 18:37:00 +0200 Subject: Add support for 4chan pass --- plugins/Fourchan.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/Fourchan.hpp') diff --git a/plugins/Fourchan.hpp b/plugins/Fourchan.hpp index c9d649f..564271a 100644 --- a/plugins/Fourchan.hpp +++ b/plugins/Fourchan.hpp @@ -24,6 +24,9 @@ namespace QuickMedia { Page get_page_after_search() const override { return Page::IMAGE_BOARD_THREAD_LIST; } bool search_is_filter() override { return true; } BodyItems get_related_media(const std::string &url) override; + + PluginResult login(const std::string &token, const std::string &pin, std::string &response_msg); + const std::string& get_pass_id() const override; private: PluginResult get_threads_internal(const std::string &url, BodyItems &result_items); void set_board_url(const std::string &new_url); @@ -43,5 +46,6 @@ namespace QuickMedia { bool running = true; std::vector cached_media_urls; std::string resources_root; + std::string pass_id; }; } \ No newline at end of file -- cgit v1.2.3