[vlc-commits] youtube.lua: fix author name

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> | Tue Jul 23 00:48:11 2013 +0200| [716c678b919ccfc45c6769e53bf12f3a562ef192] | committer: Jean-Baptiste Kempf

youtube.lua: fix author name

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

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

 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