diff options
Diffstat (limited to 'src/plugins/Pornhub.cpp')
-rw-r--r-- | src/plugins/Pornhub.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/Pornhub.cpp b/src/plugins/Pornhub.cpp index 74b66b6..4d30001 100644 --- a/src/plugins/Pornhub.cpp +++ b/src/plugins/Pornhub.cpp @@ -89,9 +89,9 @@ namespace QuickMedia { } } - static SearchResult get_videos_in_page(const std::string &url, bool use_tor, BodyItems &result_items) { + static SearchResult get_videos_in_page(const std::string &url, BodyItems &result_items) { std::string website_data; - if(download_to_string(url, website_data, {}, use_tor) != DownloadResult::OK) + if(download_to_string(url, website_data, {}) != DownloadResult::OK) return SearchResult::NET_ERR; HtmlElement *html_root = html_parse(website_data.data(), website_data.size()); @@ -130,14 +130,14 @@ namespace QuickMedia { SearchResult PornhubSearchPage::search(const std::string &str, BodyItems &result_items) { std::string url = "https://www.pornhub.com/video/search?search="; url += url_param_encode(str); - return get_videos_in_page(url, is_tor_enabled(), result_items); + return get_videos_in_page(url, result_items); } PluginResult PornhubSearchPage::get_page(const std::string &str, int page, BodyItems &result_items) { std::string url = "https://www.pornhub.com/video/search?search="; url += url_param_encode(str); url += "&page=" + std::to_string(1 + page); - return search_result_to_plugin_result(get_videos_in_page(url, is_tor_enabled(), result_items)); + return search_result_to_plugin_result(get_videos_in_page(url, result_items)); } PluginResult PornhubSearchPage::submit(const std::string&, const std::string &url, std::vector<Tab> &result_tabs) { @@ -152,7 +152,7 @@ namespace QuickMedia { BodyItems PornhubVideoPage::get_related_media(const std::string &url, std::string&) { BodyItems result_items; - get_videos_in_page(url, is_tor_enabled(), result_items); + get_videos_in_page(url, result_items); return result_items; } |