aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/youku.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-12-03 20:33:22 +0100
committerremitamine <remitamine@gmail.com>2015-12-03 20:33:22 +0100
commit78653a33aa00ba5205940c2baac5d9f019795b88 (patch)
tree246fd038effd402bc66de4c8afb36e6c318efcaa /youtube_dl/extractor/youku.py
parent77302fe5c989b9cafcb675c0a03642b80fa557ff (diff)
parent24dc1ed715239f85eb3d5f71a707da1dd2bc7773 (diff)
Merge remote-tracking branch 'upstream/master' into bliptv
Diffstat (limited to 'youtube_dl/extractor/youku.py')
-rw-r--r--youtube_dl/extractor/youku.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/youtube_dl/extractor/youku.py b/youtube_dl/extractor/youku.py
index 2e81d9223..69ecc837a 100644
--- a/youtube_dl/extractor/youku.py
+++ b/youtube_dl/extractor/youku.py
@@ -4,12 +4,13 @@ from __future__ import unicode_literals
import base64
from .common import InfoExtractor
-from ..utils import ExtractorError
-
from ..compat import (
compat_urllib_parse,
compat_ord,
- compat_urllib_request,
+)
+from ..utils import (
+ ExtractorError,
+ sanitized_Request,
)
@@ -187,7 +188,7 @@ class YoukuIE(InfoExtractor):
video_id = self._match_id(url)
def retrieve_data(req_url, note):
- req = compat_urllib_request.Request(req_url)
+ req = sanitized_Request(req_url)
cn_verification_proxy = self._downloader.params.get('cn_verification_proxy')
if cn_verification_proxy: