diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-12-20 02:37:18 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-12-20 02:37:18 +0100 |
commit | ad23cbf1343c744eded60736c98370d2ed99f753 (patch) | |
tree | 8146799f89aa1678c9e472bdfb5e8c73c4462b71 /src/plugins/Pornhub.cpp | |
parent | 5ef35784af24e5fcaa0f8570c23299d01b46412a (diff) |
Fix tor not used for all connections when enabled
Diffstat (limited to 'src/plugins/Pornhub.cpp')
-rw-r--r-- | src/plugins/Pornhub.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |