mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-04-23 15:27:31 +00:00

is_html(first_bytes) will fail if the first 512 bytes of the URL are all whitespace, for some weird reason. Such a case probably is not a direct video link, the case we're concerned about downloading inadvertently, since that wouldn't be a valid video binary file format. But it's still peculiar, so don't silently ignore it -- print a warning and continue on.