diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-08-15 11:41:06 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-08-15 11:41:06 +0200 |
commit | de4825e548b990493b372237cbef9a790bf114c4 (patch) | |
tree | c81a7c281f14d0404cb2a5b57ca5a6f6cd967b54 /plugins | |
parent | 0009006c39ce4bfebc3c5260b83063c800cb4fdf (diff) |
Play popular invidious instance urls directly in qm
Replaces popular invidious instance urls with youtube.com
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Youtube.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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. |