1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-06-22 11:26:20 +00:00

Merge a250e9974fd5f0ab9ffcb1ded2eb4e72cd91eb30 into c052a16f72af7dd7671d4dd62826de71cd99dfb6

This commit is contained in:
dirkf 2025-04-14 21:18:34 +00:00 committed by GitHub
commit f6bf9eda7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,6 +59,7 @@ from ..utils import (
float_or_none,
GeoRestrictedError,
GeoUtils,
HEADRequest,
int_or_none,
join_nonempty,
js_to_json,
@ -1645,7 +1646,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(