From aede0ce99387a46c215f7acda7415f7d32eb8dfd Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Fri, 3 May 2013 16:51:18 +0200 Subject: [PATCH] Qbrick: support for sydsvenskan.se --- README.md | 1 + lib/svtplay_dl/service/qbrick.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5900ae0..7cb6a2e 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ This script works for: * svd.se * sverigesradio.se * svtplay.se +* sydsvenskan.se * tv4.se * tv3play.se * tv4play.se diff --git a/lib/svtplay_dl/service/qbrick.py b/lib/svtplay_dl/service/qbrick.py index 2dace53..6af4208 100644 --- a/lib/svtplay_dl/service/qbrick.py +++ b/lib/svtplay_dl/service/qbrick.py @@ -12,10 +12,10 @@ from svtplay_dl.fetcher.rtmp import download_rtmp class Qbrick(Service): def handle(self, url): - return ("dn.se" in url) or ("di.se" in url) or ("svd.se" in url) + return ("dn.se" in url) or ("di.se" in url) or ("svd.se" in url) or ("sydsvenskan.se" in url) def get(self, options, url): - if re.findall("dn.se", url): + if re.findall("(dn.se|sydsvenskan.se)", url): data = get_http_data(url) match = re.search("data-qbrick-mcid=\"([0-9A-F]+)\"", data) if not match: