0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-02 03:47:27 +00:00

[crunchyroll] switch to HTTPS for RpcApi(closes #17749)

This commit is contained in:
Remita Amine 2018-10-02 19:43:06 +01:00
parent 05e7c184da
commit d98cb62e55

View file

@ -45,7 +45,7 @@ def _call_rpc_api(self, method, video_id, note=None, data=None):
data['req'] = 'RpcApi' + method data['req'] = 'RpcApi' + method
data = compat_urllib_parse_urlencode(data).encode('utf-8') data = compat_urllib_parse_urlencode(data).encode('utf-8')
return self._download_xml( return self._download_xml(
'http://www.crunchyroll.com/xml/', 'https://www.crunchyroll.com/xml/',
video_id, note, fatal=False, data=data, headers={ video_id, note, fatal=False, data=data, headers={
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',
}) })