From c6ab527bf342ddbb78d37c07b69d8d104232514a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 31 May 2020 03:02:47 +0200 Subject: Update readme with instructions for mangadex credentials --- README.md | 10 +++++++++- src/plugins/Mangadex.cpp | 2 -- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ee5acc7..941b70b 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,14 @@ Press `1 to 9` or `Numpad 1 to 9` to select google captcha image when posting a Press `P` to preview the attached item of the selected row in full screen view. Only works for image boards when browsing a thread. ## Video controls Press `space` to pause/unpause video. `Double-click` video to fullscreen or leave fullscreen. +# Mangadex +To search for manga with mangadex, you need to be logged into mangadex in your browser and copy the `mangadex_rememberme_token` cookie from developer tools +and store it in `$HOME/.config/quickmedia/credentials/mangadex.json` under the key `rememberme_token`. Here is an example what the file should look like: +``` +{ + "rememberme_token": "21s9d3f7ad224a131239Dsfaf033029d2e390dAsfd3ldadb3a39dk43jfldj35das" +} +``` # Dependencies ## Compile See project.conf \[dependencies]. @@ -64,4 +72,4 @@ Wrap text that is too long.\ Add greentext support for quotes.\ Add support for special formatting for posts by admins on imageboards.\ For image boards, track (You)'s and show notification when somebody replies to your post.\ -In image boards when viewing videos, automatically play the next one after the current one has finished playing (just like the youtube plugin does). \ No newline at end of file +In image boards when viewing videos, automatically play the next one after the current one has finished playing (just like the youtube plugin does). diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp index d17ba74..235e709 100644 --- a/src/plugins/Mangadex.cpp +++ b/src/plugins/Mangadex.cpp @@ -4,8 +4,6 @@ #include static const std::string mangadex_url = "https://mangadex.org"; -// TODO: Allow selecting other languages than english -static const char *language_code = "1"; // english static const std::string useragent_str = "user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"; namespace QuickMedia { -- cgit v1.2.3