Explorar o código

[extractor/common] Test URLs with GET

Sergey M? %!s(int64=10) %!d(string=hai) anos
pai
achega
4069766c52
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      youtube_dl/extractor/common.py

+ 1 - 3
youtube_dl/extractor/common.py

@@ -753,9 +753,7 @@ class InfoExtractor(object):
 
 
     def _is_valid_url(self, url, video_id, item='video'):
     def _is_valid_url(self, url, video_id, item='video'):
         try:
         try:
-            self._request_webpage(
-                HEADRequest(url), video_id,
-                'Checking %s URL' % item)
+            self._request_webpage(url, video_id, 'Checking %s URL' % item)
             return True
             return True
         except ExtractorError as e:
         except ExtractorError as e:
             if isinstance(e.cause, compat_HTTPError):
             if isinstance(e.cause, compat_HTTPError):