Fix #3132 (Calibre Zip is 0.00KB)

This commit is contained in:
Kovid Goyal 2009-08-11 20:01:46 -06:00
parent 53e7aa12f6
commit 0bdca2d21c

View File

@ -110,7 +110,7 @@ class HTMLFile(object):
raise IOError(msg)
raise IgnoreFile(msg, err.errno)
self.is_binary = not bool(self.HTML_PAT.search(src[:1024]))
self.is_binary = not bool(self.HTML_PAT.search(src[:4096]))
if not self.is_binary:
if encoding is None:
encoding = xml_to_unicode(src[:4096], verbose=verbose)[-1]