From 4b0beee989d22ccf0556db69077e325c3e800ec8 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Tue, 20 Oct 2015 00:02:10 +0200 Subject: [PATCH] disney: get the text instead of content this failed on python3 --- lib/svtplay_dl/service/disney.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/disney.py b/lib/svtplay_dl/service/disney.py index 15214e1..71787d5 100644 --- a/lib/svtplay_dl/service/disney.py +++ b/lib/svtplay_dl/service/disney.py @@ -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" % \ (partnerid, uiconfid, entryid, uniq) - data = self.http.request("get", url).content + data = self.http.request("get", url).text match = re.search(r"mwi\(({.*})\);", data) jsondata = json.loads(match.group(1)) data = jsondata["content"]