diff options
Diffstat (limited to 'src/plugins/Pornhub.cpp')
-rw-r--r-- | src/plugins/Pornhub.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/Pornhub.cpp b/src/plugins/Pornhub.cpp index b063a32..c0e3fa1 100644 --- a/src/plugins/Pornhub.cpp +++ b/src/plugins/Pornhub.cpp @@ -131,6 +131,13 @@ namespace QuickMedia { return get_videos_in_page(url, is_tor_enabled(), 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)); + } + PluginResult PornhubSearchPage::submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) { (void)title; (void)url; |