mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:34:27 +02:00
Update book.device_collections before add_book is called
This commit is contained in:
parent
0fe81939ea
commit
fd7f23f7c2
1 changed files with 1 additions and 1 deletions
|
|
@ -111,9 +111,9 @@ def update_booklist(prefix, path, title, authors, mime, date, ContentType, Image
|
|||
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…
Reference in a new issue