Browse Source

[extractor/common] Test URLs with GET

Sergey M? 10 năm trước cách đây
mục cha
commit
4069766c52
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  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'):
         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):