1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

qbrick: fixed detection for di.se videos.

This commit is contained in:
Johan Andersson 2013-04-29 14:33:36 +02:00
parent 0cbe97ee2d
commit 98ccd0573b

View File

@ -29,7 +29,12 @@ class Qbrick(Service):
host = "http://vms.api.qbrick.com/rest/v3/getsingleplayer/%s" % mcid host = "http://vms.api.qbrick.com/rest/v3/getsingleplayer/%s" % mcid
elif re.findall("di.se", url): elif re.findall("di.se", url):
data = get_http_data(url) data = get_http_data(url)
match = re.search("ccid: \"(.*)\"\,", data) match = re.search("src=\"(http://qstream.*)\"></iframe", data)
if not match:
log.error("Can't find video info")
sys.exit(2)
data = get_http_data(match.group(1))
match = re.search("data-qbrick-ccid=\"([0-9A-Z]+)\"", data)
if not match: if not match:
log.error("Can't find video file") log.error("Can't find video file")
sys.exit(2) sys.exit(2)