1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 12:15:40 +01:00

generic: service need one more argument

This commit is contained in:
Johan Andersson 2016-03-16 19:36:40 +01:00
parent 2bb8f82287
commit ef22f9885e

View File

@ -111,44 +111,44 @@ class Generic(Service):
for i in sites:
if i.handles(url):
url = url.replace("&", "&").replace("&", "&")
return url, i(url)
return url, i(self.options, url)
match = re.search(r"src=\"(http://player.vimeo.com/video/[0-9]+)\" ", data)
if match:
for i in sites:
if i.handles(match.group(1)):
return match.group(1), i(url)
return match.group(1), i(self.options, url)
match = re.search(r"tv4play.se/iframe/video/(\d+)?", data)
if match:
url = "http://www.tv4play.se/?video_id=%s" % match.group(1)
for i in sites:
if i.handles(url):
return url, i(url)
return url, i(self.options, url)
match = re.search(r"embed.bambuser.com/broadcast/(\d+)", data)
if match:
url = "http://bambuser.com/v/%s" % match.group(1)
for i in sites:
if i.handles(url):
return url, i(url)
return url, i(self.options, url)
match = re.search(r'src="(http://tv.aftonbladet[^"]*)"', data)
if match:
url = match.group(1)
for i in sites:
if i.handles(url):
return url, i(url)
return url, i(self.options, url)
match = re.search(r'a href="(http://tv.aftonbladet[^"]*)" class="abVi', data)
if match:
url = match.group(1)
for i in sites:
if i.handles(url):
return url, i(url)
return url, i(self.options, url)
match = re.search(r"iframe src='(http://www.svtplay[^']*)'", data)
if match:
url = match.group(1)
for i in sites:
if i.handles(url):
return url, i(url)
return url, i(self.options, url)
match = re.search('src="(http://mm-resource-service.herokuapp.com[^"]*)"', data)
if match: