mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[extractor/common] Test URLs with GET
This commit is contained in:
parent
7010577720
commit
4069766c52
1 changed files with 1 additions and 3 deletions
|
@ -753,9 +753,7 @@ def _check_formats(self, formats, video_id):
|
|||
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue