mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:43:31 +02:00
...
This commit is contained in:
parent
3eaaa85e1f
commit
4ce8db1fe2
1 changed files with 2 additions and 2 deletions
|
|
@ -120,7 +120,7 @@ def rationalize_cover3(self, opf, log):
|
|||
removed = titlepage_href
|
||||
return removed
|
||||
|
||||
def rationalize_cover(self, opf, log):
|
||||
def rationalize_cover2(self, opf, log):
|
||||
''' Ensure that the cover information in the guide is correct. That
|
||||
means, at most one entry with type="cover" that points to a raster
|
||||
cover and at most one entry with type="titlepage" that points to an
|
||||
|
|
@ -266,7 +266,7 @@ def convert(self, stream, options, file_ext, log, accelerators):
|
|||
for elem in opf.iterguide():
|
||||
elem.set('href', delta+elem.get('href'))
|
||||
|
||||
f = self.rationalize_cover3 if opf.package_version >= 3.0 else self.rationalize_cover
|
||||
f = self.rationalize_cover3 if opf.package_version >= 3.0 else self.rationalize_cover2
|
||||
self.removed_cover = f(opf, log)
|
||||
|
||||
for x in opf.itermanifest():
|
||||
|
|
|
|||
Loading…
Reference in a new issue