[vlc-commits] youtube.lua: fix escaped characters issue in artist metadata

Pierre Ynard git at videolan.org
Mon Aug 17 18:53:56 CEST 2020


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Aug 17 18:27:28 2020 +0200| [a464a7d641afc8c80043bb318f217d9568a45f68] | committer: Pierre Ynard

youtube.lua: fix escaped characters issue in artist metadata

The YouTube channel name can indeed contain '/'

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

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

diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index 98958f53d5..7a4ed693bc 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -348,6 +348,7 @@ function parse()
                 artist = string.match(line, '\\"author\\":\\"(.-)\\"')
                 if artist then
                     -- FIXME: do this properly
+                    artist = string.gsub( artist, "\\/", "/" )
                     artist = string.gsub( artist, "\\u0026", "&" )
                 end
             end



More information about the vlc-commits mailing list