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

Pierre Ynard git at videolan.org
Mon Dec 9 19:39:36 CET 2013


vlc/vlc-2.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Aug  5 03:12:14 2013 +0200| [53e3979027028671407e516cd101e3ef1363ebd9] | committer: Felix Paul Kühne

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

With google accounts it's happening now

(cherry picked from commit 62605f279bd632a09bdc037feceb65f62b236d89)
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=53e3979027028671407e516cd101e3ef1363ebd9
---

 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