From 70ef4a30a56a064d4ea32f6748c5e1607e75214c Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 8 Mar 2015 14:46:27 +0100 Subject: [PATCH] qbrick: sydsvenskan is not supported anymore fixes #216 --- README.md | 1 - lib/svtplay_dl/service/qbrick.py | 23 ++--------------------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index f105c91..7a60732 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,6 @@ This script works for: * svd.se * sverigesradio.se * svtplay.se -* sydsvenskan.se * tv10play.se * tv3play.dk * tv3play.ee diff --git a/lib/svtplay_dl/service/qbrick.py b/lib/svtplay_dl/service/qbrick.py index cac7dd7..5a83a4c 100644 --- a/lib/svtplay_dl/service/qbrick.py +++ b/lib/svtplay_dl/service/qbrick.py @@ -12,7 +12,7 @@ from svtplay_dl.log import log from svtplay_dl.fetcher.rtmp import RTMP class Qbrick(Service, OpenGraphThumbMixin): - supported_domains = ['di.se', 'sydsvenskan.se'] + supported_domains = ['di.se'] def get(self, options): error, data = self.get_urldata() @@ -23,14 +23,7 @@ class Qbrick(Service, OpenGraphThumbMixin): if self.exclude(options): return - if re.findall(r"sydsvenskan.se", self.url): - match = re.search(r"data-qbrick-mcid=\"([0-9A-F]+)\"", data) - if not match: - log.error("Can't find video file for: %s", self.url) - return - mcid = match.group(1) - host = "http://vms.api.qbrick.com/rest/v3/getsingleplayer/%s" % mcid - elif re.findall(r"di.se", self.url): + if re.findall(r"di.se", self.url): match = re.search("src=\"(http://qstream.*)\">