mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1475538 [version attribute missing when converting to azw3 format](https://bugs.launchpad.net/calibre/+bug/1475538)
This commit is contained in:
parent
458276eb30
commit
253d9034c7
@ -237,7 +237,7 @@ def check_opf(container):
|
||||
'The opf must have the root element <package> in namespace {0}, like this: <package xmlns="{0}">')).format(OPF2_NS)
|
||||
errors.append(err)
|
||||
|
||||
elif container.opf.get('version') is None:
|
||||
elif container.opf.get('version') is None and container.book_type == 'epub':
|
||||
err = BaseError(_('The OPF does not have a version'), container.opf_name, container.opf.sourceline)
|
||||
err.HELP = xml(_(
|
||||
'The <package> tag in the OPF must have a version attribute. This is usually version="2.0" for EPUB2 and AZW3 and version="3.0" for EPUB3'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user