mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
0710ed215d
commit
ea39d22212
@ -7,7 +7,7 @@ from __future__ import absolute_import, division, print_function, unicode_litera
|
|||||||
import os
|
import os
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
from calibre.srv.changes import formats_removed
|
from calibre.srv.changes import formats_added
|
||||||
|
|
||||||
readonly = False
|
readonly = False
|
||||||
|
|
||||||
@ -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_removed({book_id: fmt}))
|
notify_changes(formats_added({book_id: fmt}))
|
||||||
return added
|
return added
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user