[vlc-commits] youtube.lua: support music.youtube.com URLs

Pierre Ynard git at videolan.org
Thu Nov 12 07:28:20 CET 2020


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu Nov 12 05:48:10 2020 +0100| [95cf2a33e984a58801e4423359dc691c1d1e0faa] | committer: Pierre Ynard

youtube.lua: support music.youtube.com URLs

Simply redirect to the main domain

Fixes #25241

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=95cf2a33e984a58801e4423359dc691c1d1e0faa
---

 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