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:
parent
e188ca8f56
commit
4b0beee989
@ -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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user