From 5ec1811fa7499386f324f13a3a49dbe7d8ea6741 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 19 Jun 2021 13:51:37 +0200 Subject: Fix youtube sometimes needing a redirect for media url --- plugins/Page.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/Page.hpp') 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; } -- cgit v1.2.3