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

qbrick: this code is not valid anymore

This commit is contained in:
Johan Andersson 2014-03-31 14:07:32 +02:00
parent 7685944bdf
commit 0046d05987

View File

@ -35,15 +35,6 @@ class Qbrick(Service, OpenGraphThumbMixin):
log.error("Can't find video file") log.error("Can't find video file")
sys.exit(2) sys.exit(2)
host = "http://vms.api.qbrick.com/rest/v3/getplayer/%s" % match.group(1) host = "http://vms.api.qbrick.com/rest/v3/getplayer/%s" % match.group(1)
elif re.findall(r"dn.se", self.url):
data = self.get_urldata()
match = re.search(r"'([0-9A-F]{8})',", data)
if not match:
match = re.search(r"mediaId = '([0-9A-F]{8})';", data)
if not match:
log.error("Can't find video file")
sys.exit(2)
host = "http://vms.api.qbrick.com/rest/v3//getsingleplayer/%sDE1BA107?statusCode=xml" % match.group(1)
elif re.findall(r"svd.se", self.url): elif re.findall(r"svd.se", self.url):
match = re.search(r'video url-([^"]*)\"', self.get_urldata()) match = re.search(r'video url-([^"]*)\"', self.get_urldata())
if not match: if not match: