1
0
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:
Johan Andersson 2016-08-23 01:01:31 +02:00
parent 74eae8791f
commit 5394a0f92c

View File

@ -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):