aboutsummaryrefslogtreecommitdiff
path: root/plugins/Youtube.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Youtube.hpp')
-rw-r--r--plugins/Youtube.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/Youtube.hpp b/plugins/Youtube.hpp
index 22cb9e5..77aa86c 100644
--- a/plugins/Youtube.hpp
+++ b/plugins/Youtube.hpp
@@ -157,14 +157,16 @@ namespace QuickMedia {
class YoutubePlaylistPage : public LazyFetchPage {
public:
- YoutubePlaylistPage(Program *program, std::string url, std::string title) :
- LazyFetchPage(program), url(std::move(url)), title(std::move(title)) {}
+ YoutubePlaylistPage(Program *program, const std::string &url, std::string title);
const char* get_title() const override { return title.c_str(); }
+ 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:
- std::string url;
+ std::string playlist_id;
std::string title;
+ std::string continuation_token;
+ bool reached_end = false;
};
class YoutubeVideoPage : public VideoPage {