]> git.sesse.net Git - vlc/commitdiff
youtube.lua: fix author name
authorPierre Ynard <linkfanel@yahoo.fr>
Mon, 22 Jul 2013 22:48:11 +0000 (00:48 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Mon, 22 Jul 2013 22:48:11 +0000 (00:48 +0200)
share/lua/playlist/youtube.lua

index 220717bae9e59bec55ba16c1d270da4574a682f4..e1ccb88773715af09da819ad93f26483107baa4c 100644 (file)
@@ -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 )