[vlc-commits] youtube.lua: fix encoded characters in author name (API)

Pierre Ynard git at videolan.org
Mon Aug 5 09:51:02 CEST 2013


vlc/vlc-2.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Aug  5 03:12:14 2013 +0200| [62304f58eba76539a0fd26e892a7ebbdb196282a] | committer: Jean-Baptiste Kempf

youtube.lua: fix encoded characters in author name (API)

With google accounts it's happening now

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

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

 share/lua/playlist/youtube.lua |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index dab4d65..286c6c0 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -269,7 +269,7 @@ function parse()
         local artist = string.match( line, "&author=([^&]*)" )
         if artist then
             artist = string.gsub( artist, "+", " " )
-            -- Not sure if there may be encoded characters to decode here
+            artist = vlc.strings.decode_uri( artist )
         end
         local arturl = string.match( line, "&thumbnail_url=([^&]*)" )
         if arturl then



More information about the vlc-commits mailing list