From de4825e548b990493b372237cbef9a790bf114c4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 15 Aug 2021 11:41:06 +0200 Subject: Play popular invidious instance urls directly in qm Replaces popular invidious instance urls with youtube.com --- plugins/Youtube.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') diff --git a/plugins/Youtube.hpp b/plugins/Youtube.hpp index c7aff93..c3945de 100644 --- a/plugins/Youtube.hpp +++ b/plugins/Youtube.hpp @@ -23,6 +23,8 @@ namespace QuickMedia { YoutubeFormat base; }; + // Returns |url| if the url is already a youtube url + std::string invidious_url_to_youtube_url(const std::string &url); bool youtube_url_extract_id(const std::string &youtube_url, std::string &youtube_video_id); // |video_url| or |audio_url| will be empty if there is an error and false will be returned. // If false is returned from |active_handler|, then this function is cancelled. -- cgit v1.2.3