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

generic: detect embeded svtplay streams

This commit is contained in:
Johan Andersson 2014-02-08 22:47:27 +01:00
parent b50fd6b907
commit c7634399a7

View File

@ -126,6 +126,12 @@ class Generic(object):
if i.handles(url):
return url, i(url)
match = re.search(r'iframe src="(http://tv.aftonbladet[^"]*)"', data)
if match:
url = match.group(1)
for i in sites:
if i.handles(url):
return url, i(url)
match = re.search(r"iframe src='(http://www.svtplay[^']*)'", data)
if match:
url = match.group(1)
for i in sites: