[vlc-commits] youtube.lua: fix escaped '\r' in metadata from alternate API
Pierre Ynard
git at videolan.org
Thu Nov 12 03:45:57 CET 2020
vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu Nov 12 03:38:58 2020 +0100| [ce0d76706f3123ae383c32eb18e7144ce9f9aa0e] | committer: Pierre Ynard
youtube.lua: fix escaped '\r' in metadata from alternate API
(cherry picked from commit 7b7eac146181342b1bf76c1914a74122962cf114)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=ce0d76706f3123ae383c32eb18e7144ce9f9aa0e
---
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 b17900fd2e..08947a86b0 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -561,6 +561,7 @@ function parse()
-- FIXME: do this properly (see #24958)
description = string.gsub( description, '\\(["\\/])', '%1' )
description = string.gsub( description, '\\n', '\n' )
+ description = string.gsub( description, '\\r', '\r' )
description = string.gsub( description, "\\u0026", "&" )
end
local artist = string.match( line, "%%22author%%22%%3A%%22(.-)%%22" )
More information about the vlc-commits
mailing list