aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Youtube.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Youtube.hpp b/plugins/Youtube.hpp
index 6ce62e8..de8a0c3 100644
--- a/plugins/Youtube.hpp
+++ b/plugins/Youtube.hpp
@@ -86,15 +86,19 @@ namespace QuickMedia {
class YoutubeCommentRepliesPage : public LazyFetchPage {
public:
- YoutubeCommentRepliesPage(Program *program, const std::string &video_url, const std::string &continuation_token) : LazyFetchPage(program), video_url(video_url), continuation_token(continuation_token) {}
+ YoutubeCommentRepliesPage(Program *program, const std::string &video_url, const std::string &continuation_token, const BodyItem *replied_to_body_item) :
+ LazyFetchPage(program), video_url(video_url), continuation_token(continuation_token), replied_to_body_item(replied_to_body_item) {}
const char* get_title() const override { return "Comment replies"; }
PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override;
PluginResult submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) override;
PluginResult lazy_fetch(BodyItems &result_items) override;
private:
+ PluginResult lazy_fetch(BodyItems &result_items, bool first_fetch);
+ private:
int current_page = 0;
std::string video_url;
std::string continuation_token;
+ const BodyItem *replied_to_body_item;
};
class YoutubeChannelPage : public LazyFetchPage, public TrackablePage {