projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed370ff
)
[toggle] Use sanitized_Request
author
Sergey M․
<dstftw@gmail.com>
Sat, 19 Dec 2015 13:03:55 +0000
(19:03 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 19 Dec 2015 13:03:55 +0000
(19:03 +0600)
youtube_dl/extractor/togglesg.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/togglesg.py
b/youtube_dl/extractor/togglesg.py
index 9f958d453576948c0e7a1c13eca57d28678dc0b3..05a9e54392678354e01be12363821b20d79b4da8 100644
(file)
--- 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')