Browse Source

youtube.lua: fix escaped '\r' in metadata from alternate API

pull/117/head
Pierre Ynard 5 years ago
parent
commit
7b7eac1461
  1. 1
      share/lua/playlist/youtube.lua

1
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" )

Loading…
Cancel
Save