[vlc-commits] youtube.lua: fix author name
Pierre Ynard
git at videolan.org
Tue Jul 23 00:49:09 CEST 2013
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Jul 23 00:48:11 2013 +0200| [96e4d7a375c1c29501ab13280806929b763ade33] | committer: Pierre Ynard
youtube.lua: fix author name
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=96e4d7a375c1c29501ab13280806929b763ade33
---
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 )
More information about the vlc-commits
mailing list