From 4daa57f6d139f51a62ea4bcffa738bd5035df33a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 5 Nov 2022 15:53:28 +0100 Subject: Support as many emoji as possible, using separate emoji images in text --- plugins/Youtube.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins') 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 &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 { -- cgit v1.2.3