mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-26 05:18:25 +01:00
Mark title page in OPF when upgrading
This commit is contained in:
parent
31f642e951
commit
c9a8e46d1a
1 changed files with 2 additions and 0 deletions
|
|
@ -105,6 +105,8 @@ def create_nav(container, toc, landmarks):
|
|||
if landmarks:
|
||||
for entry in landmarks:
|
||||
entry['type'] = guide_epubtype_map.get(entry['type'].lower())
|
||||
if entry['type'] == 'cover' and container.mime_map.get(entry['dest'], '').lower() in OEB_DOCS:
|
||||
container.apply_unique_properties(entry['dest'], 'calibre:title-page')
|
||||
commit_nav_toc(container, toc, lang=lang, landmarks=landmarks)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue