diff options
author | remitamine <remitamine@gmail.com> | 2015-12-03 20:33:22 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2015-12-03 20:33:22 +0100 |
commit | 78653a33aa00ba5205940c2baac5d9f019795b88 (patch) | |
tree | 246fd038effd402bc66de4c8afb36e6c318efcaa /youtube_dl/extractor/streamcz.py | |
parent | 77302fe5c989b9cafcb675c0a03642b80fa557ff (diff) | |
parent | 24dc1ed715239f85eb3d5f71a707da1dd2bc7773 (diff) |
Merge remote-tracking branch 'upstream/master' into bliptv
Diffstat (limited to 'youtube_dl/extractor/streamcz.py')
-rw-r--r-- | youtube_dl/extractor/streamcz.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/youtube_dl/extractor/streamcz.py b/youtube_dl/extractor/streamcz.py index e92b93285..d3d2b7eb7 100644 --- a/youtube_dl/extractor/streamcz.py +++ b/youtube_dl/extractor/streamcz.py @@ -5,11 +5,9 @@ import hashlib import time from .common import InfoExtractor -from ..compat import ( - compat_urllib_request, -) from ..utils import ( int_or_none, + sanitized_Request, ) @@ -54,7 +52,7 @@ class StreamCZIE(InfoExtractor): video_id = self._match_id(url) api_path = '/episode/%s' % video_id - req = compat_urllib_request.Request(self._API_URL + api_path) + req = sanitized_Request(self._API_URL + api_path) req.add_header('Api-Password', _get_api_key(api_path)) data = self._download_json(req, video_id) |