mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Update book.device_collections before add_book is called
This commit is contained in:
parent
0fe81939ea
commit
fd7f23f7c2
@ -111,9 +111,9 @@ class KOBO(USBMS):
|
||||
else:
|
||||
book = self.book_from_path(prefix, lpath, title, authors, mime, date, ContentType, ImageID)
|
||||
# print 'Update booklist'
|
||||
book.device_collections = playlist_map.get(book.lpath, [])
|
||||
if bl.add_book(book, replace_metadata=False):
|
||||
changed = True
|
||||
book.device_collections = playlist_map.get(book.lpath, [])
|
||||
except: # Probably a path encoding error
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
Loading…
x
Reference in New Issue
Block a user