diff options
Diffstat (limited to 'plugins/Youtube.hpp')
-rw-r--r-- | plugins/Youtube.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Youtube.hpp b/plugins/Youtube.hpp index 28b50bb..d8c4cc2 100644 --- a/plugins/Youtube.hpp +++ b/plugins/Youtube.hpp @@ -132,13 +132,15 @@ namespace QuickMedia { class YoutubeVideoPage : public VideoPage { public: - YoutubeVideoPage(Program *program, std::string url) : VideoPage(program, std::move(url)) {} + YoutubeVideoPage(Program *program, std::string url); const char* get_title() const override { return ""; } BodyItems get_related_media(const std::string &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) override; std::unique_ptr<Page> create_channels_page(Program *program, const std::string &channel_url) override; + void set_url(std::string new_url) override; + std::string get_url_timestamp() override { return timestamp; } std::string get_video_url(int max_height, bool &has_embedded_audio) override; std::string get_audio_url() override; PluginResult load(std::string &title, std::string &channel_url) override; @@ -147,6 +149,7 @@ namespace QuickMedia { void parse_format(const Json::Value &format_json, bool is_adaptive); void parse_formats(const Json::Value &streaming_data_json); private: + std::string timestamp; std::string xsrf_token; std::string comments_continuation_token; std::string hls_manifest_url; |