Skip to content

Commit

Permalink
youtube.lua: support music.youtube.com URLs
Browse files Browse the repository at this point in the history
Simply redirect to the main domain

Fixes #25241
  • Loading branch information
linkfanel committed Nov 12, 2020
1 parent 77f1992 commit 95cf2a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions share/lua/playlist/youtube.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95cf2a3

Please sign in to comment.