diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-07-17 09:43:20 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-07-17 09:43:20 +0200 |
commit | e671784144174c4fceaa6df3737ba9b4de4a6c63 (patch) | |
tree | a3ad7d12959b92f5be9430c961d86a9c131d7036 /plugins/Page.hpp | |
parent | b09d1e70661226697e2441c18ea6ff59c387fb93 (diff) |
Youtube: remove dependency on youtube-dl for downloads (also fixes downloads of age restricted videos)
Diffstat (limited to 'plugins/Page.hpp')
-rw-r--r-- | plugins/Page.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Page.hpp b/plugins/Page.hpp index 3a382ec..35e778b 100644 --- a/plugins/Page.hpp +++ b/plugins/Page.hpp @@ -120,14 +120,15 @@ namespace QuickMedia { virtual std::string get_url_timestamp() { return ""; } // Falls back to |get_url| if this and |get_audio_url| returns empty strings. // Might do a network request. - virtual std::string get_video_url(int max_height, bool &has_embedded_audio) { + virtual std::string get_video_url(int max_height, bool &has_embedded_audio, std::string &ext) { (void)max_height; + (void)ext; has_embedded_audio = true; return ""; } // Only used if |get_video_url| sets |has_embedded_audio| to false. // Might do a network request. - virtual std::string get_audio_url() { return ""; } + virtual std::string get_audio_url(std::string &ext) { (void)ext; return ""; } virtual std::string url_get_playable_url(const std::string &url) { return url; } virtual bool video_should_be_skipped(const std::string &url) { (void)url; return false; } virtual PluginResult load(std::string &title, std::string &channel_url, std::vector<MediaChapter> &chapters) { (void)title; (void)channel_url; (void)chapters; return PluginResult::OK; } |