[vlc-commits] youtube.lua: fix escaped '\r' in metadata from alternate API
Pierre Ynard
git at videolan.org
Thu Nov 12 03:41:40 CET 2020
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu Nov 12 03:38:58 2020 +0100| [7b7eac146181342b1bf76c1914a74122962cf114] | committer: Pierre Ynard
youtube.lua: fix escaped '\r' in metadata from alternate API
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7b7eac146181342b1bf76c1914a74122962cf114
---
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