From 78d5b2a212c913f332b8681dc432a487323d6d90 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 24 Mar 2013 14:55:14 +0100 Subject: [PATCH] Generic: embeded tv4play videos --- lib/svtplay_dl/service/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/svtplay_dl/service/__init__.py b/lib/svtplay_dl/service/__init__.py index d8b674b..9edbb36 100644 --- a/lib/svtplay_dl/service/__init__.py +++ b/lib/svtplay_dl/service/__init__.py @@ -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):