mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-27 02:44:33 +01:00
[toggle] Use sanitized_Request
This commit is contained in:
parent
ed370ff0e6
commit
f8253af561
@ -11,7 +11,8 @@ from ..utils import (
|
|||||||
int_or_none,
|
int_or_none,
|
||||||
determine_ext,
|
determine_ext,
|
||||||
parse_iso8601,
|
parse_iso8601,
|
||||||
remove_end
|
remove_end,
|
||||||
|
sanitized_Request,
|
||||||
)
|
)
|
||||||
from ..compat import compat_urllib_request
|
from ..compat import compat_urllib_request
|
||||||
|
|
||||||
@ -107,7 +108,7 @@ class ToggleSgIE(InfoExtractor):
|
|||||||
'mediaType': 0,
|
'mediaType': 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
req = compat_urllib_request.Request(
|
req = sanitized_Request(
|
||||||
'http://tvpapi.as.tvinci.com/v2_9/gateways/jsonpostgw.aspx?m=GetMediaInfo',
|
'http://tvpapi.as.tvinci.com/v2_9/gateways/jsonpostgw.aspx?m=GetMediaInfo',
|
||||||
json.dumps(params).encode('utf-8'))
|
json.dumps(params).encode('utf-8'))
|
||||||
info = self._download_json(req, video_id, 'Downloading video info json')
|
info = self._download_json(req, video_id, 'Downloading video info json')
|
||||||
|
Loading…
Reference in New Issue
Block a user