Commit dd7b0d6d authored by Pierre Ynard's avatar Pierre Ynard

dailymotion.lua: partially decode video title and description

(cherry picked from commit 553fa2da4ecc8a55cbaaefdc6ad4ed2b3eb7f48f)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent dc5a376a
......@@ -49,7 +49,13 @@ function parse()
arturl = find( line, "\"videoPreviewURL\":\"([^\"]*)\"")
name = find( line, "\"videoTitle\":\"([^\"]*)\"")
if name then
name = string.gsub( name, "+", " " )
end
description = find( line, "\"videoDescription\":\"([^\"]*)\"")
if description then
description = string.gsub( description, "+", " " )
end
--[[ we get a list of different streams available, at various codecs
and resolutions:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment