1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-04 01:57:17 +08:00

new sanitized request url mewatch

This commit is contained in:
juandisay
2020-02-27 09:53:38 +07:00
Unverified
parent bee6451fe8
commit d0f91e2083
+3 -1
View File
@@ -125,8 +125,10 @@ class ToggleIE(InfoExtractor):
'mediaType': 0,
}
# sanitized request:
# 'http://tvpapi.as.tvinci.com/v2_9/gateways/jsonpostgw.aspx?m=GetMediaInfo'
req = sanitized_Request(
'http://tvpapi.as.tvinci.com/v2_9/gateways/jsonpostgw.aspx?m=GetMediaInfo',
'https://tvpapi-as.ott.kaltura.com/v3_9/gateways/jsonpostgw.aspx?m=GetMediaInfo',
json.dumps(params).encode('utf-8'))
info = self._download_json(req, video_id, 'Downloading video info json')