]> git.sesse.net Git - vlc/blobdiff - share/luaplaylist/youtube_homepage.lua
fix youtube lua probing, avoid infinite loops
[vlc] / share / luaplaylist / youtube_homepage.lua
index 7a26de13cb1f8da42de1753ea5b1e1333f9487c9..4119ccd1ee545b31eef8bfc83943045ddb6df2a5 100644 (file)
@@ -4,7 +4,7 @@
 --]]
 
 function probe()
-    return vlc.access == "http" and ( string.match( vlc.path, "youtube.com/?$" ) or string.match( vlc.path, "youtube.com/browse" ) )
+    return vlc.access == "http" and ( string.match( vlc.path, "youtube.com/%?$" ) or string.match( vlc.path, "youtube.com/browse" ) )
 end
 
 function parse()