From ad23cbf1343c744eded60736c98370d2ed99f753 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 20 Dec 2019 02:37:18 +0100 Subject: Fix tor not used for all connections when enabled --- src/plugins/Fourchan.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/Fourchan.cpp') 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; -- cgit v1.2.3