mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 13:44:14 +01:00
Qbrick: support for sydsvenskan.se
This commit is contained in:
parent
98ccd0573b
commit
aede0ce993
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user