Commit 553fa2da authored by Pierre Ynard's avatar Pierre Ynard

dailymotion.lua: partially decode video title and description

parent 66be5f79
...@@ -49,7 +49,13 @@ function parse() ...@@ -49,7 +49,13 @@ function parse()
arturl = find( line, "\"videoPreviewURL\":\"([^\"]*)\"") arturl = find( line, "\"videoPreviewURL\":\"([^\"]*)\"")
name = find( line, "\"videoTitle\":\"([^\"]*)\"") name = find( line, "\"videoTitle\":\"([^\"]*)\"")
if name then
name = string.gsub( name, "+", " " )
end
description = find( line, "\"videoDescription\":\"([^\"]*)\"") description = find( line, "\"videoDescription\":\"([^\"]*)\"")
if description then
description = string.gsub( description, "+", " " )
end
--[[ we get a list of different streams available, at various codecs --[[ we get a list of different streams available, at various codecs
and resolutions: 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