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

Fix for DN.se

This commit is contained in:
Johan Andersson 2012-02-16 09:49:18 +01:00
parent 522b31771d
commit e14009bf02

View File

@ -16,7 +16,7 @@ from optparse import OptionParser
import xml.etree.ElementTree as ET
import shlex
__version__ = "0.6.2012.01.29"
__version__ = "0.6.2012.02.16"
class Common(object):
def getdata(self, url, method="GET", header="", data=""):
@ -600,12 +600,12 @@ def main():
elif re.findall("dn.se", url):
data = common.getdata(url)
match = re.search("mediaId = \'([0-9A-F]+)\';", data)
match = re.search("data-qbrick-mcid=\"([0-9A-F]+)\"", data)
if not match:
print("Something wrong with that url")
sys.exit(2)
qbrick = Qbrick(output, quality, live, resume)
host = "http://vms.api.qbrick.com/rest/v3/getsingleplayer/" + match.group(1) + "DE1BA107"
host = "http://vms.api.qbrick.com/rest/v3/getsingleplayer/" + match.group(1)
data = common.getdata(host)
xml = ET.XML(data)
try: