Implement saving of calibre_bookmarks in kepub

This commit is contained in:
Kovid Goyal 2025-02-24 10:01:50 +05:30
parent fce03aaa38
commit 2f98ce3a8e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -98,7 +98,8 @@ class AnnotationsSaveWorker(Thread):
def save_annotations(self, current_book_data, in_book_file=True, sync_annots_user=''):
alist = tuple(annotations_as_copied_list(current_book_data['annotations_map']))
ebp = current_book_data['pathtoebook']
can_save_in_book_file = ebp.lower().endswith('.epub')
ext = ebp.rpartition('.')[-1].lower()
can_save_in_book_file = ext in ('epub', 'kepub')
self.queue.put({
'annotations_list': alist,
'annotations_path_key': current_book_data['annotations_path_key'],