[vlc-commits] youtube.lua: support music.youtube.com URLs
Pierre Ynard
git at videolan.org
Thu Nov 12 07:36:47 CET 2020
vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu Nov 12 05:48:10 2020 +0100| [35d71d9df8c21df24f5b6edfd3dc535dc7223171] | committer: Pierre Ynard
youtube.lua: support music.youtube.com URLs
Simply redirect to the main domain
Fixes #25241
(cherry picked from commit 95cf2a33e984a58801e4423359dc691c1d1e0faa)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=35d71d9df8c21df24f5b6edfd3dc535dc7223171
---
share/lua/playlist/youtube.lua | 1 +
1 file changed, 1 insertion(+)
diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index 77c3ae42ae..39b824f90a 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -306,6 +306,7 @@ function probe()
return ( ( vlc.access == "http" or vlc.access == "https" )
and (
string.match( vlc.path, "^www%.youtube%.com/" )
+ or string.match( vlc.path, "^music%.youtube%.com/" )
or string.match( vlc.path, "^gaming%.youtube%.com/" ) -- out of use
) and (
string.match( vlc.path, "/watch%?" ) -- the html page
More information about the vlc-commits
mailing list