1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-04-23 15:27:31 +00:00
John Hawkinson 00bc75ca01 [generic] Allow parsing when first 512 bytes are whitespace
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.
2017-03-19 21:01:47 -04:00
..
2017-02-28 22:10:31 +08:00
2017-03-16 22:42:12 +07:00