[vlc-commits] youtube.lua: fix escaped characters issue in artist metadata
Pierre Ynard
git at videolan.org
Mon Aug 17 19:04:51 CEST 2020
vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Aug 17 18:27:28 2020 +0200| [d95b1c403654e228927e40154390e8b246dbf980] | committer: Pierre Ynard
youtube.lua: fix escaped characters issue in artist metadata
The YouTube channel name can indeed contain '/'
(cherry picked from commit a464a7d641afc8c80043bb318f217d9568a45f68)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=d95b1c403654e228927e40154390e8b246dbf980
---
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