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

Pierre Ynard git at videolan.org
Mon Aug 5 03:14:57 CEST 2013


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Aug  5 03:12:14 2013 +0200| [62605f279bd632a09bdc037feceb65f62b236d89] | committer: Pierre Ynard

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

With google accounts it's happening now

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=62605f279bd632a09bdc037feceb65f62b236d89
---

 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