aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M? <dstftw@gmail.com>2015-02-17 22:31:35 +0600
committerSergey M․ <dstftw@gmail.com>2015-02-17 22:35:27 +0600
commit4069766c527d10b8e25b9262a3882101367deb3e (patch)
tree36fc5567bd0d5dcfeb59a7c647a6b6d6dd0760b4 /youtube_dl
parent7010577720bbea309566c38adbd912c15400b9fc (diff)
downloadyoutube-dl-4069766c527d10b8e25b9262a3882101367deb3e.tar.xz
[extractor/common] Test URLs with GET
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/common.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index e74b7bf25..4b0ee882c 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -753,9 +753,7 @@ class InfoExtractor(object):
def _is_valid_url(self, url, video_id, item='video'):
try:
- self._request_webpage(
- HEADRequest(url), video_id,
- 'Checking %s URL' % item)
+ self._request_webpage(url, video_id, 'Checking %s URL' % item)
return True
except ExtractorError as e:
if isinstance(e.cause, compat_HTTPError):