[vlc-commits] youtube.lua: update to (months-old) website changes

Pierre Ynard git at videolan.org
Mon Jul 22 22:31:08 CEST 2013


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Jul 22 22:27:23 2013 +0200| [d9e952a9baa9b181baeaf19a63ffa92cba34b3ee] | committer: Pierre Ynard

youtube.lua: update to (months-old) website changes

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

 share/lua/playlist/youtube.lua |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index 8d4144c..220717b 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -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



More information about the vlc-commits mailing list