1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-30 15:14:14 +01:00

Qbrick: support for sydsvenskan.se

This commit is contained in:
Johan Andersson 2013-05-03 16:51:18 +02:00
parent 98ccd0573b
commit aede0ce993
2 changed files with 3 additions and 2 deletions

View File

@ -36,6 +36,7 @@ This script works for:
* svd.se * svd.se
* sverigesradio.se * sverigesradio.se
* svtplay.se * svtplay.se
* sydsvenskan.se
* tv4.se * tv4.se
* tv3play.se * tv3play.se
* tv4play.se * tv4play.se

View File

@ -12,10 +12,10 @@ from svtplay_dl.fetcher.rtmp import download_rtmp
class Qbrick(Service): class Qbrick(Service):
def handle(self, url): 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): def get(self, options, url):
if re.findall("dn.se", url): if re.findall("(dn.se|sydsvenskan.se)", url):
data = get_http_data(url) data = get_http_data(url)
match = re.search("data-qbrick-mcid=\"([0-9A-F]+)\"", data) match = re.search("data-qbrick-mcid=\"([0-9A-F]+)\"", data)
if not match: if not match: