aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Fourchan.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-12-20 02:37:18 +0100
committerdec05eba <dec05eba@protonmail.com>2019-12-20 02:37:18 +0100
commitad23cbf1343c744eded60736c98370d2ed99f753 (patch)
tree8146799f89aa1678c9e472bdfb5e8c73c4462b71 /src/plugins/Fourchan.cpp
parent5ef35784af24e5fcaa0f8570c23299d01b46412a (diff)
Fix tor not used for all connections when enabled
Diffstat (limited to 'src/plugins/Fourchan.cpp')
-rw-r--r--src/plugins/Fourchan.cpp6
1 files changed, 3 insertions, 3 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;