[vlc-commits] youtube.lua: fix escaped characters issue in artist metadata
Pierre Ynard
git at videolan.org
Tue Nov 3 01:41:17 CET 2020
vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Nov 3 00:14:45 2020 +0100| [c8f0549e8e19e517a0019ead4a55a7ddbe801800] | committer: Pierre Ynard
youtube.lua: fix escaped characters issue in artist metadata
The double encoding of \u0026 wasn't handled.
(cherry picked from commit 083059cd884b7720d2a319edde58699328ac4408)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=c8f0549e8e19e517a0019ead4a55a7ddbe801800
---
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 d211e30951..29e3f1e184 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -371,7 +371,7 @@ function parse()
artist = string.match(line, '\\"author\\":\\"(.-)\\"')
if artist then
-- FIXME: do this properly (see #24958)
- artist = string.gsub( artist, "\\/", "/" )
+ artist = string.gsub( artist, '\\(["\\/])', '%1' )
artist = string.gsub( artist, "\\u0026", "&" )
end
end
More information about the vlc-commits
mailing list