diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-06-19 13:51:37 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-06-19 13:51:37 +0200 |
commit | 5ec1811fa7499386f324f13a3a49dbe7d8ea6741 (patch) | |
tree | 835c8b853cc9a6f96aa962070d685e2e3e2f110d /plugins | |
parent | 85c6c916541968f298badb391b718cdf6d81d332 (diff) |
Fix youtube sometimes needing a redirect for media url
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Page.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Page.hpp b/plugins/Page.hpp index 0d45b9e..2d10d50 100644 --- a/plugins/Page.hpp +++ b/plugins/Page.hpp @@ -117,13 +117,15 @@ namespace QuickMedia { 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 + // 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) { (void)max_height; has_embedded_audio = true; return ""; } - // Only used if |get_video_url| sets |has_embedded_audio| to false + // 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 url_get_playable_url(const std::string &url) { return url; } virtual bool video_should_be_skipped(const std::string &url) { (void)url; return false; } |