mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Implement saving of calibre_bookmarks in kepub
This commit is contained in:
parent
fce03aaa38
commit
2f98ce3a8e
@ -98,7 +98,8 @@ class AnnotationsSaveWorker(Thread):
|
|||||||
def save_annotations(self, current_book_data, in_book_file=True, sync_annots_user=''):
|
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']))
|
alist = tuple(annotations_as_copied_list(current_book_data['annotations_map']))
|
||||||
ebp = current_book_data['pathtoebook']
|
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({
|
self.queue.put({
|
||||||
'annotations_list': alist,
|
'annotations_list': alist,
|
||||||
'annotations_path_key': current_book_data['annotations_path_key'],
|
'annotations_path_key': current_book_data['annotations_path_key'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user