mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
Qbrick: this condition never happen
This commit is contained in:
parent
aede0ce993
commit
06368689de
@ -19,13 +19,9 @@ class Qbrick(Service):
|
||||
data = get_http_data(url)
|
||||
match = re.search("data-qbrick-mcid=\"([0-9A-F]+)\"", data)
|
||||
if not match:
|
||||
match = re.search("mediaId = \'([0-9A-F]+)\';", data)
|
||||
if not match:
|
||||
log.error("Can't find video file")
|
||||
sys.exit(2)
|
||||
mcid = "%sDE1BA107" % match.group(1)
|
||||
else:
|
||||
mcid = match.group(1)
|
||||
log.error("Can't find video file")
|
||||
sys.exit(2)
|
||||
mcid = match.group(1)
|
||||
host = "http://vms.api.qbrick.com/rest/v3/getsingleplayer/%s" % mcid
|
||||
elif re.findall("di.se", url):
|
||||
data = get_http_data(url)
|
||||
|
Loading…
Reference in New Issue
Block a user