From ef22f9885ebdbfd25bed435bfc4b297919200300 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Wed, 16 Mar 2016 19:36:40 +0100 Subject: [PATCH] generic: service need one more argument --- lib/svtplay_dl/service/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/svtplay_dl/service/__init__.py b/lib/svtplay_dl/service/__init__.py index 8414386..89a4bfa 100644 --- a/lib/svtplay_dl/service/__init__.py +++ b/lib/svtplay_dl/service/__init__.py @@ -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: