From: Jaime Marquínez Ferrándiz Date: Tue, 26 Aug 2014 12:55:15 +0000 (+0200) Subject: [mixcloud] Use a HEAD request when checking if the url is valid X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=dbc1366b502db813a27aaa9ab2fa5148749ac659;p=youtube-dl [mixcloud] Use a HEAD request when checking if the url is valid --- 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