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/Pornhub.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/Pornhub.cpp') 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 { -- cgit v1.2.3