1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

generic: handle it as a regular service

This commit is contained in:
Johan Andersson 2015-09-06 16:03:57 +02:00
parent 411381a653
commit e0618e9fb0

View File

@ -99,8 +99,8 @@ class OpenGraphThumbMixin(object):
class Generic(Service):
''' Videos embed in sites '''
def get(self, sites, url):
data = self.http.request("get", url).content
def get(self, sites):
data = self.http.request("get", self.url).text
match = re.search(r"src=(\"|\')(http://www.svt.se/wd[^\'\"]+)(\"|\')", data)
stream = None
if match: