mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
ea39d22212
commit
686bc23593
@ -18,7 +18,7 @@ def implementation(db, notify_changes, book_id, data, fmt, replace):
|
|||||||
data = BytesIO(data[1])
|
data = BytesIO(data[1])
|
||||||
added = db.add_format(book_id, fmt, data, replace=replace)
|
added = db.add_format(book_id, fmt, data, replace=replace)
|
||||||
if is_remote and added:
|
if is_remote and added:
|
||||||
notify_changes(formats_added({book_id: fmt}))
|
notify_changes(formats_added({book_id: (fmt,)}))
|
||||||
return added
|
return added
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,10 +10,12 @@ def books_added(book_ids):
|
|||||||
|
|
||||||
|
|
||||||
def formats_added(formats_map):
|
def formats_added(formats_map):
|
||||||
|
# formats_map: {book_id:(fmt1, fmt2)}
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def formats_removed(formats_map):
|
def formats_removed(formats_map):
|
||||||
|
# formats_map: {book_id:(fmt1, fmt2)}
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user