aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Fourchan.cpp
diff options
context:
space:
mode:
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;