This commit is contained in:
dirkf 2024-05-11 04:45:01 +08:00 committed by GitHub
commit 961d87c063
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,7 @@ from ..utils import (
float_or_none,
GeoRestrictedError,
GeoUtils,
HEADRequest,
int_or_none,
join_nonempty,
js_to_json,
@ -1649,7 +1650,8 @@ class InfoExtractor(object):
if not (url.startswith('http://') or url.startswith('https://')):
return True
try:
self._request_webpage(url, video_id, 'Checking %s URL' % item, headers=headers)
req = HEADRequest(url, headers=headers)
self._request_webpage(req, video_id, 'Checking %s URL' % item)
return True
except ExtractorError as e:
self.to_screen(