aboutsummaryrefslogtreecommitdiff
path: root/plugins/Mangadex.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-05-31 16:39:48 +0200
committerdec05eba <dec05eba@protonmail.com>2020-05-31 16:39:48 +0200
commit68a2660da9ea4c660feda5d8569a8f43108964ec (patch)
tree10f0d0e3ac0e88af362a2e144e6a761b38a4ec42 /plugins/Mangadex.hpp
parent89c1a9ef17f2eb49d09e5e2b1459e1c58668ab6b (diff)
Use cookies
Diffstat (limited to 'plugins/Mangadex.hpp')
-rw-r--r--plugins/Mangadex.hpp3
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