mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
generic: support for finding m3u8 files in source tags
This commit is contained in:
parent
74eae8791f
commit
5394a0f92c
@ -187,6 +187,12 @@ class Generic(Service):
|
||||
if i.handles(url):
|
||||
return self.url, i(self.options, self.url)
|
||||
|
||||
match = re.search('source src="([^"]+)" type="application/x-mpegURL"', data)
|
||||
if match:
|
||||
for i in sites:
|
||||
if i.__name__ == "Raw":
|
||||
return self.url, i(self.options, match.group(1))
|
||||
|
||||
return self.url, stream
|
||||
|
||||
def service_handler(sites, options, url):
|
||||
|
Loading…
Reference in New Issue
Block a user