diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-19 03:12:31 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-19 03:12:31 +0200 |
commit | fd4e8cdc9449dbb0224a1a41ef0561f50012d405 (patch) | |
tree | ae9b2f29c0a7cf1f64a28d6898350fc7bddb718a /src/plugins/Pornhub.cpp | |
parent | 5c1b4fb3198ec398e8b292effe5ca84d280939f3 (diff) |
Add pagination to ph and mangatown
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; |