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

Pierre Ynard git at videolan.org
Mon Dec 9 19:39:36 CET 2013


vlc/vlc-2.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Jul 22 22:27:23 2013 +0200| [2a5c17bb384e7bfac1d6386ecfc4c0f3bccf51f5] | committer: Felix Paul Kühne

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

(cherry picked from commit d9e952a9baa9b181baeaf19a63ffa92cba34b3ee)
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>

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

 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