From fd4e8cdc9449dbb0224a1a41ef0561f50012d405 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 19 Oct 2020 03:12:31 +0200 Subject: Add pagination to ph and mangatown --- plugins/Page.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/Page.hpp') diff --git a/plugins/Page.hpp b/plugins/Page.hpp index 947f045..2adce85 100644 --- a/plugins/Page.hpp +++ b/plugins/Page.hpp @@ -21,6 +21,7 @@ namespace QuickMedia { // Return empty |result_tabs| and PluginResult::OK to do nothing; which is useful for implementing custom actions on item submit virtual PluginResult submit(const std::string &title, const std::string &url, std::vector &result_tabs) = 0; + // Note: If pagination is done by fetching the next page until we get to |page|, then the "current page" should be reset everytime |search| is called virtual PluginResult get_page(const std::string &str, int page, BodyItems &result_items) { (void)str; (void)page; (void)result_items; return PluginResult::OK; } virtual BodyItems get_related_media(const std::string &url); -- cgit v1.2.3