aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2014-08-26 14:55:15 +0200
committerJaime Marquínez Ferrándiz <[email protected]>2014-08-26 14:55:15 +0200
commitdbc1366b502db813a27aaa9ab2fa5148749ac659 (patch)
tree7fb082bf5da3eeb6e810f318e6d4dc7f846caf17
parent704df56da7b074697138e715027c699a54b1b95a (diff)
downloadyoutube-dl-dbc1366b502db813a27aaa9ab2fa5148749ac659.tar.gz
youtube-dl-dbc1366b502db813a27aaa9ab2fa5148749ac659.zip
[mixcloud] Use a HEAD request when checking if the url is valid
-rw-r--r--youtube_dl/extractor/mixcloud.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/mixcloud.py b/youtube_dl/extractor/mixcloud.py
index 5f64e7bd0..520f27fca 100644
--- a/youtube_dl/extractor/mixcloud.py
+++ b/youtube_dl/extractor/mixcloud.py
@@ -6,6 +6,7 @@ from .common import InfoExtractor
from ..utils import (
compat_urllib_parse,
ExtractorError,
+ HEADRequest,
int_or_none,
parse_iso8601,
)
@@ -38,7 +39,7 @@ class MixcloudIE(InfoExtractor):
try:
# We only want to know if the request succeed
# don't download the whole file
- self._request_webpage(url, None, False)
+ self._request_webpage(HEADRequest(url), None, False)
return url
except ExtractorError:
url = None