From 68a2660da9ea4c660feda5d8569a8f43108964ec Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 31 May 2020 16:39:48 +0200 Subject: Use cookies --- plugins/Mangadex.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') diff --git a/plugins/Mangadex.hpp b/plugins/Mangadex.hpp index 5feb7f8..aaca18d 100644 --- a/plugins/Mangadex.hpp +++ b/plugins/Mangadex.hpp @@ -22,9 +22,12 @@ namespace QuickMedia { private: // Caches url. If the same url is requested multiple times then the cache is used ImageResult get_image_urls_for_chapter(const std::string &url); + bool get_rememberme_token(std::string &rememberme_token); + bool save_mangadex_cookies(const std::string &url, const std::string &cookie_filepath); private: std::string last_chapter_url; std::vector last_chapter_image_urls; std::mutex image_urls_mutex; + std::optional rememberme_token; }; } \ No newline at end of file -- cgit v1.2.3