mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8fd80a948f
commit
81f3a5b5cd
@ -1352,7 +1352,7 @@ class Cache(object):
|
||||
Remove the specified formats from the specified books.
|
||||
|
||||
:param formats_map: A mapping of book_id to a list of formats to be removed from the book.
|
||||
:param db_only: If True, only remove the record fo the format from the db, dont delete the actual format file from the filesystem.
|
||||
:param db_only: If True, only remove the record for the format from the db, do not delete the actual format file from the filesystem.
|
||||
'''
|
||||
table = self.fields['formats'].table
|
||||
formats_map = {book_id:frozenset((f or '').upper() for f in fmts) for book_id, fmts in formats_map.iteritems()}
|
||||
|
Loading…
x
Reference in New Issue
Block a user