mirror of
https://github.com/videolan/vlc.git
synced 2025-01-19 14:18:11 +08:00
* dailymotion.lua: woops, forgot to include title fetching in previous version.
This commit is contained in:
parent
bea5e7ec24
commit
8b00a4b3ed
@ -15,8 +15,13 @@ function parse()
|
||||
if not line then break end
|
||||
if string.match( line, "param name=\"flashvars\" value=\"url=" )
|
||||
then
|
||||
return { { url = vlc.decode_uri( string.gsub( line, "^.*param name=\"flashvars\" value=\"url=([^&]*).*$", "%1" ) ) } }
|
||||
url = vlc.decode_uri( string.gsub( line, "^.*param name=\"flashvars\" value=\"url=([^&]*).*$", "%1" ) )
|
||||
end
|
||||
if string.match( line, "<title>" )
|
||||
then
|
||||
title = vlc.decode_uri( string.gsub( line, "^.*<title>([^<]*).*$", "%1" ) )
|
||||
end
|
||||
if url and title then break end
|
||||
end
|
||||
return {}
|
||||
return { { url = url; title = title } }
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user