Merge a5d5a2c068
into d65d89183f
This commit is contained in:
commit
e43024adec
|
@ -2366,9 +2366,12 @@ class GenericIE(InfoExtractor):
|
|||
self._sort_formats(info_dict['formats'])
|
||||
return info_dict
|
||||
|
||||
# Maybe it's a direct link to a video?
|
||||
# Be careful not to download the whole thing!
|
||||
if not is_html(first_bytes):
|
||||
if re.match(r'^\s+$', first_bytes.decode('utf-8', 'replace')):
|
||||
self._downloader.report_warning(
|
||||
'First block is just whitespace? Continuing...')
|
||||
elif not is_html(first_bytes):
|
||||
# Maybe it's a direct link to a video?
|
||||
# Be careful not to download the whole thing!
|
||||
self._downloader.report_warning(
|
||||
'URL could be a direct video link, returning it as such.')
|
||||
info_dict.update({
|
||||
|
|
Loading…
Reference in New Issue