diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-09-09 11:54:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-09-09 11:57:38 +0200 |
commit | c64d577cb053b6fee8e84f768419e84c3c9df2cc (patch) | |
tree | 26f9b83b97670f38155d8ca21bb94d77c93b15ad /plugins/Page.hpp | |
parent | 76ef34393aa72230a3490ecf7b06647ede1448da (diff) |
Fix peertube video download
Diffstat (limited to 'plugins/Page.hpp')
-rw-r--r-- | plugins/Page.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/Page.hpp b/plugins/Page.hpp index 071351b..925a53a 100644 --- a/plugins/Page.hpp +++ b/plugins/Page.hpp @@ -135,6 +135,7 @@ namespace QuickMedia { virtual std::unique_ptr<Page> create_channels_page(Program *program, const std::string &channel_url) = 0; virtual void set_url(std::string new_url) { url = std::move(new_url); } std::string get_url() { return url; } + virtual std::string get_download_url(int max_height) { return url; } // Returns empty string for no timestamp or if the video doesn't support timestamps. // Timestamp is in seconds. virtual std::string get_url_timestamp() { return ""; } |