mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Mark title page in OPF when upgrading
This commit is contained in:
parent
31f642e951
commit
c9a8e46d1a
@ -105,6 +105,8 @@ def create_nav(container, toc, landmarks):
|
|||||||
if landmarks:
|
if landmarks:
|
||||||
for entry in landmarks:
|
for entry in landmarks:
|
||||||
entry['type'] = guide_epubtype_map.get(entry['type'].lower())
|
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)
|
commit_nav_toc(container, toc, lang=lang, landmarks=landmarks)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user