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

Pierre Ynard git at videolan.org
Tue Jul 23 10:19:42 CEST 2013


vlc/vlc-2.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Jul 22 22:27:23 2013 +0200| [7d603020cddcb81d3000cb19679eab0ce19e5709] | committer: Jean-Baptiste Kempf

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

(cherry picked from commit d9e952a9baa9b181baeaf19a63ffa92cba34b3ee)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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