]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[extractor/common] Test URLs with GET
authorSergey M? <dstftw@gmail.com>
Tue, 17 Feb 2015 16:31:35 +0000 (22:31 +0600)
committerSergey M․ <dstftw@gmail.com>
Tue, 17 Feb 2015 16:35:27 +0000 (22:35 +0600)
youtube_dl/extractor/common.py

index e74b7bf25e9aa6be1dbbc92e1748e730bc1e739d..4b0ee882cb3db5b40a9bb3cd9b300d408b828345 100644 (file)
@@ -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):