diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-05-31 16:39:48 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-05-31 16:39:48 +0200 |
commit | 68a2660da9ea4c660feda5d8569a8f43108964ec (patch) | |
tree | 10f0d0e3ac0e88af362a2e144e6a761b38a4ec42 /plugins | |
parent | 89c1a9ef17f2eb49d09e5e2b1459e1c58668ab6b (diff) |
Use cookies
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Mangadex.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<std::string> last_chapter_image_urls; std::mutex image_urls_mutex; + std::optional<std::string> rememberme_token; }; }
\ No newline at end of file |