diff options
Diffstat (limited to 'plugins/Youtube.hpp')
-rw-r--r-- | plugins/Youtube.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Youtube.hpp b/plugins/Youtube.hpp index f8a5d5f..4691f04 100644 --- a/plugins/Youtube.hpp +++ b/plugins/Youtube.hpp @@ -75,15 +75,17 @@ namespace QuickMedia { class YoutubeVideoPage : public VideoPage { public: - YoutubeVideoPage(Program *program) : VideoPage(program) {} + YoutubeVideoPage(Program *program, const std::string &url) : VideoPage(program), url(url) {} const char* get_title() const override { return ""; } BodyItems get_related_media(const std::string &url, std::string &channel_url) override; std::unique_ptr<Page> create_search_page(Program *program, int &search_delay) override; std::unique_ptr<Page> create_comments_page(Program *program) override; std::unique_ptr<RelatedVideosPage> create_related_videos_page(Program *program, const std::string &video_url, const std::string &video_title) override; std::unique_ptr<LazyFetchPage> create_channels_page(Program *program, const std::string &channel_url) override; + std::string get_url() override { return url; } private: std::string xsrf_token; std::string comments_continuation_token; + std::string url; }; }
\ No newline at end of file |