]> git.sesse.net Git - vlc/commitdiff
youtube.lua: update to (months-old) website changes
authorPierre Ynard <linkfanel@yahoo.fr>
Mon, 22 Jul 2013 20:27:23 +0000 (22:27 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Mon, 22 Jul 2013 20:27:23 +0000 (22:27 +0200)
share/lua/playlist/youtube.lua

index 8d4144c875967ffe5f0c3a51c8f61c24191213d8..220717bae9e59bec55ba16c1d270da4574a682f4 100644 (file)
@@ -142,8 +142,8 @@ function parse()
                 _,_,artist = string.find( line, "href=\"/user/([^\"]*)\"" )
             end
             -- JSON parameters, also formerly known as "swfConfig",
-            -- "SWF_ARGS", "swfArgs", "PLAYER_CONFIG" ...
-            if string.match( line, "playerConfig" ) then
+            -- "SWF_ARGS", "swfArgs", "PLAYER_CONFIG", "playerConfig" ...
+            if string.match( line, "ytplayer%.config" ) then
                 if not fmt then
                     fmt_list = string.match( line, "\"fmt_list\": \"(.-)\"" )
                     if fmt_list then