aboutsummaryrefslogtreecommitdiff
path: root/plugins/Page.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Page.hpp')
-rw-r--r--plugins/Page.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Page.hpp b/plugins/Page.hpp
index 0ed4933..39222b1 100644
--- a/plugins/Page.hpp
+++ b/plugins/Page.hpp
@@ -112,8 +112,10 @@ namespace QuickMedia {
virtual std::unique_ptr<RelatedVideosPage> create_related_videos_page(Program *program) = 0;
// Return nullptr if the service doesn't support channels page
virtual std::unique_ptr<Page> create_channels_page(Program *program, const std::string &channel_url) = 0;
- void set_url(std::string new_url) { url = std::move(new_url); }
+ virtual void set_url(std::string new_url) { url = std::move(new_url); }
std::string get_url() { return url; }
+ // Returns empty string for no timestamp or if the video doesn't support timestamps
+ virtual std::string get_url_timestamp() { return ""; }
// Falls back to |get_url| if this and |get_audio_url| returns empty strings
virtual std::string get_video_url(int max_height, bool &has_embedded_audio) {
(void)max_height;