mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Only run the HTML file size check on EPUB files
This commit is contained in:
parent
5e758211f1
commit
6ad92cbf11
@ -61,6 +61,7 @@ def run_checks(container):
|
||||
items = raster_images
|
||||
if items is not None:
|
||||
items.append((name, mt, container.raw_data(name, decode=decode)))
|
||||
if container.book_type == 'epub':
|
||||
errors.extend(run_checkers(check_html_size, html_items))
|
||||
errors.extend(run_checkers(check_xml_parsing, xml_items))
|
||||
errors.extend(run_checkers(check_xml_parsing, html_items))
|
||||
|
Loading…
x
Reference in New Issue
Block a user