aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Mangadex.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-03-30 00:45:51 +0200
committerdec05eba <dec05eba@protonmail.com>2021-03-30 00:45:51 +0200
commit539d9b457c4f30ef0731a479772212e7ce8bfd7c (patch)
tree256aae0d3524918ba80d609cadd9063cd06fb453 /src/plugins/Mangadex.cpp
parent3ac540c21116cb9cc91cfd1d7b0dd6f6ded31123 (diff)
Remove tor option. Use torsocks instead (which is what quickmedia did anyways)
Diffstat (limited to 'src/plugins/Mangadex.cpp')
-rw-r--r--src/plugins/Mangadex.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp
index 6df0903..63ceb3f 100644
--- a/src/plugins/Mangadex.cpp
+++ b/src/plugins/Mangadex.cpp
@@ -64,7 +64,7 @@ namespace QuickMedia {
CommandArg cookie_arg = { "-H", "cookie: mangadex_rememberme_token=" + rememberme_token };
std::string website_data;
- if(download_to_string(url, website_data, {std::move(cookie_arg)}, is_tor_enabled(), true) != DownloadResult::OK)
+ if(download_to_string(url, website_data, {std::move(cookie_arg)}, true) != DownloadResult::OK)
return SearchResult::NET_ERR;
QuickMediaHtmlSearch html_search;
@@ -121,7 +121,7 @@ namespace QuickMedia {
std::string request_url = "https://mangadex.org/api/?id=" + title_url_extract_manga_id(url) + "&type=manga";
rapidjson::Document json_root;
- DownloadResult result = download_to_json(request_url, json_root, {}, is_tor_enabled(), true);
+ DownloadResult result = download_to_json(request_url, json_root, {}, true);
if(result != DownloadResult::OK) return download_result_to_plugin_result(result);
if(!json_root.IsObject())
@@ -232,7 +232,7 @@ namespace QuickMedia {
bool MangadexImagesPage::save_mangadex_cookies(const std::string &url, const std::string &cookie_filepath) {
CommandArg cookie_arg = { "-c", cookie_filepath };
std::string server_response;
- if(download_to_string(url, server_response, {std::move(cookie_arg)}, is_tor_enabled(), true) != DownloadResult::OK)
+ if(download_to_string(url, server_response, {std::move(cookie_arg)}, true) != DownloadResult::OK)
return false;
return true;