1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-28 06:04:17 +01:00

disney: get the text instead of content

this failed on python3
This commit is contained in:
Johan Andersson 2015-10-20 00:02:10 +02:00
parent e188ca8f56
commit 4b0beee989

View File

@ -83,7 +83,7 @@ class Disney(Service, OpenGraphThumbMixin):
url = "http://cdnapi.kaltura.com/html5/html5lib/v1.9.7.6/mwEmbedFrame.php?&wid=%s&uiconf_id=%s&entry_id=%s&playerId=%s&forceMobileHTML5=true&urid=1.9.7.6&callback=mwi" % \ url = "http://cdnapi.kaltura.com/html5/html5lib/v1.9.7.6/mwEmbedFrame.php?&wid=%s&uiconf_id=%s&entry_id=%s&playerId=%s&forceMobileHTML5=true&urid=1.9.7.6&callback=mwi" % \
(partnerid, uiconfid, entryid, uniq) (partnerid, uiconfid, entryid, uniq)
data = self.http.request("get", url).content data = self.http.request("get", url).text
match = re.search(r"mwi\(({.*})\);", data) match = re.search(r"mwi\(({.*})\);", data)
jsondata = json.loads(match.group(1)) jsondata = json.loads(match.group(1))
data = jsondata["content"] data = jsondata["content"]