Commit ffab21f8 authored by Pierre Ynard's avatar Pierre Ynard

vimeo.lua: remove useless test

This was only useful when we had several URLs to handle
(cherry picked from commit 5e374e0a6748ad6a8d0616a43903ad8e53edc801)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent c827b4b4
...@@ -42,7 +42,6 @@ end ...@@ -42,7 +42,6 @@ end
-- Parse function. -- Parse function.
function parse() function parse()
if string.match ( vlc.path, "vimeo.com/%d+$" ) then
_,_,id = string.find( vlc.path, "vimeo.com/([0-9]*)") _,_,id = string.find( vlc.path, "vimeo.com/([0-9]*)")
prefres = get_prefres() prefres = get_prefres()
ishd = false ishd = false
...@@ -106,6 +105,4 @@ function parse() ...@@ -106,6 +105,4 @@ function parse()
end end
path = "http://player.vimeo.com/play_redirect?quality="..quality.."&codecs="..codec.."&clip_id="..id.."&time="..tstamp.."&sig="..rsig.."&type=html5_desktop_local" path = "http://player.vimeo.com/play_redirect?quality="..quality.."&codecs="..codec.."&clip_id="..id.."&time="..tstamp.."&sig="..rsig.."&type=html5_desktop_local"
return { { path = path; name = name; arturl = arturl, duration = duration } } return { { path = path; name = name; arturl = arturl, duration = duration } }
end
return {}
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