From f731916d1aee697e79c9ed90a65eb9c28fbab6b1 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sat, 28 Jan 2012 14:34:21 +0100 Subject: [PATCH] Fix for DN.se --- svtplay-dl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/svtplay-dl b/svtplay-dl index 4856441..6b8ad2f 100755 --- a/svtplay-dl +++ b/svtplay-dl @@ -164,9 +164,9 @@ class Qbrick(Common): server = xml.find("head").find("meta").attrib["base"] streams = xml.find("body").find("switch") if sys.version_info < (2, 7): - sa = list(ss.getiterator("video")) + sa = list(streams.getiterator("video")) else: - sa = list(ss.iter("video")) + sa = list(streams.iter("video")) streams = {} for i in sa: streams[int(i.attrib["system-bitrate"])] = i.attrib["src"] @@ -545,11 +545,11 @@ def main(): elif re.findall("dn.se", url): common = Common() data = common.getdata(url) - match = re.search("data-qbrick-mcid=\"([0-9A-F]+)\" data-qbrick", data) + match = re.search("mediaId = \'([0-9A-F]+)\';", data) if not match: print("Something wrong with that url") sys.exit(2) - qbrick = Qbrick(output, quality, live, match.group(1), resume) + qbrick = Qbrick(output, quality, live, match.group(1) + "DE1BA107", resume) qbrick.get("http://vms.api.qbrick.com") elif re.findall("di.se", url):