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

Generic: embeded tv4play videos

This commit is contained in:
Johan Andersson 2013-03-24 14:55:14 +01:00
parent 12ca98359f
commit 78d5b2a212

View File

@ -60,6 +60,12 @@ class Generic(object):
for i in sites:
if i.handle(match.group(1)):
return match.group(1), i
match = re.search("tv4video.swf\?vid=(\d+)", data)
if match:
url = "http://www.tv4play.se/?video_id=%s" % match.group(1)
for i in sites:
if i.handle(url):
return url, i
return url, stream
def service_handler(url):