Commit 95b3c4c4 authored by Fabio Ritrovato's avatar Fabio Ritrovato Committed by Jean-Baptiste Kempf

Dailymotion: fix for other domains and description parsing

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 6d5cb64b)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c9aa0cb2
......@@ -24,7 +24,7 @@
-- Probe function.
function probe()
return vlc.access == "http"
and string.match( vlc.path, "dailymotion.com" )
and string.match( vlc.path, "dailymotion." )
and string.match( vlc.peek( 2048 ), "<!DOCTYPE.*video_type" )
end
......@@ -85,7 +85,7 @@ function parse()
end
if string.match( line, "<meta name=\"description\"" )
then
description = vlc.strings.resolve_xml_special_chars( find( line, "name=\"description\" content=\"(.-)\"" ) )
description = vlc.strings.resolve_xml_special_chars( find( line, "name=\"description\" lang=\".-\" content=\"(.-)\"" ) )
end
if path and name and description and arturl then break end
end
......
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