mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 01:23:01 +08:00
skip_http_head flag added
This commit is contained in:
parent
6c5c0bac3b
commit
626fcaa22a
@ -2226,8 +2226,10 @@ class GenericIE(InfoExtractor):
|
||||
else:
|
||||
video_id = self._generic_id(url)
|
||||
|
||||
if self._downloader.params.get('skip_http_head') == None:
|
||||
head_response = False
|
||||
else:
|
||||
self.to_screen('%s: Requesting header' % video_id)
|
||||
|
||||
head_req = HEADRequest(url)
|
||||
head_response = self._request_webpage(
|
||||
head_req, video_id,
|
||||
|
Loading…
Reference in New Issue
Block a user