]> git.sesse.net Git - vlc/commitdiff
youtube.lua: fix encoded characters in author name (API)
authorPierre Ynard <linkfanel@yahoo.fr>
Mon, 5 Aug 2013 01:12:14 +0000 (03:12 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Mon, 5 Aug 2013 01:12:14 +0000 (03:12 +0200)
With google accounts it's happening now

share/lua/playlist/youtube.lua

index dab4d6585d7f30f81a1fe43b88fe5eb7960616d4..286c6c017ba09cf5853979bd36e6697a3697aedd 100644 (file)
@@ -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