vlc/vlc-2.0 | branch: master | Pierre Ynard <[email protected]> | Tue Jul 23 00:48:11 2013 +0200| [92eab8896472a3994b15cce7428ad51e067aa591] | committer: Felix Paul Kühne
youtube.lua: fix author name (cherry picked from commit 96e4d7a375c1c29501ab13280806929b763ade33) Signed-off-by: Felix Paul Kühne <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=92eab8896472a3994b15cce7428ad51e067aa591 --- share/lua/playlist/youtube.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua index 220717b..e1ccb88 100644 --- a/share/lua/playlist/youtube.lua +++ b/share/lua/playlist/youtube.lua @@ -240,6 +240,10 @@ function parse() title = vlc.strings.decode_uri( title ) end local artist = string.match( line, "&author=([^&]*)" ) + if artist then + artist = string.gsub( artist, "+", " " ) + -- Not sure if there may be encoded characters to decode here + end local arturl = string.match( line, "&thumbnail_url=([^&]*)" ) if arturl then arturl = vlc.strings.decode_uri( arturl ) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
