aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-12-19 19:03:55 +0600
committerSergey M․ <dstftw@gmail.com>2015-12-19 19:03:55 +0600
commitf8253af561655c7c470323e631e8b66283bcf623 (patch)
treed7a96a3aa32134227c60b52a76e84652c73dc739 /youtube_dl/extractor
parented370ff0e6f52aaf3647b32cdbba9d25ce8533e5 (diff)
[toggle] Use sanitized_Request
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/togglesg.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/togglesg.py b/youtube_dl/extractor/togglesg.py
index 9f958d453..05a9e5439 100644
--- a/youtube_dl/extractor/togglesg.py
+++ b/youtube_dl/extractor/togglesg.py
@@ -11,7 +11,8 @@ from ..utils import (
int_or_none,
determine_ext,
parse_iso8601,
- remove_end
+ remove_end,
+ sanitized_Request,
)
from ..compat import compat_urllib_request
@@ -107,7 +108,7 @@ class ToggleSgIE(InfoExtractor):
'mediaType': 0,
}
- req = compat_urllib_request.Request(
+ req = sanitized_Request(
'http://tvpapi.as.tvinci.com/v2_9/gateways/jsonpostgw.aspx?m=GetMediaInfo',
json.dumps(params).encode('utf-8'))
info = self._download_json(req, video_id, 'Downloading video info json')