mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-05-30 17:42:41 +09:00
Merge a250e9974fd5f0ab9ffcb1ded2eb4e72cd91eb30 into 2b4fbfce25902d557b86b003cf48f738129efce4
This commit is contained in:
commit
3c82ccd799
@ -59,6 +59,7 @@ from ..utils import (
|
||||
float_or_none,
|
||||
GeoRestrictedError,
|
||||
GeoUtils,
|
||||
HEADRequest,
|
||||
int_or_none,
|
||||
join_nonempty,
|
||||
js_to_json,
|
||||
@ -1653,7 +1654,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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user