aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Fourchan.cpp6
-rw-r--r--src/plugins/Manganelo.cpp6
-rw-r--r--src/plugins/Pornhub.cpp4
-rw-r--r--src/plugins/Youtube.cpp4
4 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/Fourchan.cpp b/src/plugins/Fourchan.cpp
index c571ef8..438dc3b 100644
--- a/src/plugins/Fourchan.cpp
+++ b/src/plugins/Fourchan.cpp
@@ -13,7 +13,7 @@ static const std::string fourchan_image_url = "https://i.4cdn.org/";
namespace QuickMedia {
PluginResult Fourchan::get_front_page(BodyItems &result_items) {
std::string server_response;
- if(download_to_string(fourchan_url + "boards.json", server_response) != DownloadResult::OK)
+ if(download_to_string(fourchan_url + "boards.json", server_response, {}, use_tor) != DownloadResult::OK)
return PluginResult::NET_ERR;
Json::Value json_root;
@@ -153,7 +153,7 @@ namespace QuickMedia {
PluginResult Fourchan::get_threads(const std::string &url, BodyItems &result_items) {
std::string server_response;
- if(download_to_string(fourchan_url + url + "/catalog.json", server_response) != DownloadResult::OK)
+ if(download_to_string(fourchan_url + url + "/catalog.json", server_response, {}, use_tor) != DownloadResult::OK)
return PluginResult::NET_ERR;
Json::Value json_root;
@@ -281,7 +281,7 @@ namespace QuickMedia {
PluginResult Fourchan::get_thread_comments(const std::string &list_url, const std::string &url, BodyItems &result_items) {
std::string server_response;
- if(download_to_string(fourchan_url + list_url + "/thread/" + url + ".json", server_response) != DownloadResult::OK)
+ if(download_to_string(fourchan_url + list_url + "/thread/" + url + ".json", server_response, {}, use_tor) != DownloadResult::OK)
return PluginResult::NET_ERR;
Json::Value json_root;
diff --git a/src/plugins/Manganelo.cpp b/src/plugins/Manganelo.cpp
index 7af35a6..a7ed4bc 100644
--- a/src/plugins/Manganelo.cpp
+++ b/src/plugins/Manganelo.cpp
@@ -5,7 +5,7 @@
namespace QuickMedia {
SearchResult Manganelo::search(const std::string &url, BodyItems &result_items) {
std::string website_data;
- if(download_to_string(url, website_data) != DownloadResult::OK)
+ if(download_to_string(url, website_data, {}, use_tor) != DownloadResult::OK)
return SearchResult::NET_ERR;
QuickMediaHtmlSearch html_search;
@@ -57,7 +57,7 @@ namespace QuickMedia {
CommandArg data_arg = { "--data", std::move(search_term) };
std::string server_response;
- if(download_to_string(url, server_response, {data_arg}) != DownloadResult::OK)
+ if(download_to_string(url, server_response, {data_arg}, use_tor) != DownloadResult::OK)
return SuggestionResult::NET_ERR;
if(server_response.empty())
@@ -111,7 +111,7 @@ namespace QuickMedia {
last_chapter_image_urls.clear();
std::string website_data;
- if(download_to_string(url, website_data) != DownloadResult::OK)
+ if(download_to_string(url, website_data, {}, use_tor) != DownloadResult::OK)
return ImageResult::NET_ERR;
QuickMediaHtmlSearch html_search;
diff --git a/src/plugins/Pornhub.cpp b/src/plugins/Pornhub.cpp
index 4955efd..c94532b 100644
--- a/src/plugins/Pornhub.cpp
+++ b/src/plugins/Pornhub.cpp
@@ -31,7 +31,7 @@ namespace QuickMedia {
url += url_param_encode(text);
std::string website_data;
- if(download_to_string(url, website_data) != DownloadResult::OK)
+ if(download_to_string(url, website_data, {}, use_tor) != DownloadResult::OK)
return SuggestionResult::NET_ERR;
struct ItemData {
@@ -86,7 +86,7 @@ namespace QuickMedia {
BodyItems result_items;
std::string website_data;
- if(download_to_string(url, website_data) != DownloadResult::OK)
+ if(download_to_string(url, website_data, {}, use_tor) != DownloadResult::OK)
return result_items;
struct ItemData {
diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp
index 0f0ca05..3660810 100644
--- a/src/plugins/Youtube.cpp
+++ b/src/plugins/Youtube.cpp
@@ -75,7 +75,7 @@ namespace QuickMedia {
url += url_param_encode(text);
std::string website_data;
- if(download_to_string(url, website_data) != DownloadResult::OK)
+ if(download_to_string(url, website_data, {}, use_tor) != DownloadResult::OK)
return SuggestionResult::NET_ERR;
struct ItemData {
@@ -164,7 +164,7 @@ namespace QuickMedia {
}
std::string website_data;
- if(download_to_string(modified_url, website_data) != DownloadResult::OK)
+ if(download_to_string(modified_url, website_data, {}, use_tor) != DownloadResult::OK)
return result_items;
QuickMediaHtmlSearch html_search;