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:
parent
411381a653
commit
e0618e9fb0
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user