vlc/vlc-2.0 | branch: master | Pierre Ynard <linkfa...@yahoo.fr> | Mon Aug 5 01:11:35 2013 +0200| [3f152be3490dc2ec8ff9b329a8343a75df1e7679] | committer: Felix Paul Kühne
youtube.lua: update author name extraction (cherry picked from commit 12a302e9b5ba839b345192d375edce0a2345111e) Signed-off-by: Felix Paul Kühne <fkue...@videolan.org> > http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=3f152be3490dc2ec8ff9b329a8343a75df1e7679 --- 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 60cce81..dab4d65 100644 --- a/share/lua/playlist/youtube.lua +++ b/share/lua/playlist/youtube.lua @@ -165,8 +165,8 @@ function parse() if string.match( line, "<meta property=\"og:image\"" ) then _,_,arturl = string.find( line, "content=\"(.-)\"" ) end - if string.match( line, " rel=\"author\"" ) then - _,_,artist = string.find( line, "href=\"/user/([^\"]*)\"" ) + if not artist then + artist = string.match( line, "yt%-uix%-sessionlink yt%-user%-name[^>]*>([^<]*)</" ) end -- JSON parameters, also formerly known as "swfConfig", -- "SWF_ARGS", "swfArgs", "PLAYER_CONFIG", "playerConfig" ... _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits