mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-26 16:52:46 -04:00
Fix customizing driver plugin leads to tags not being sent to device
This commit is contained in:
@@ -101,7 +101,8 @@ class PRS505(USBMS):
|
||||
opts = self.settings()
|
||||
collections = ['series', 'tags']
|
||||
if opts.extra_customization:
|
||||
collections = opts.extra_customization.split(',')
|
||||
collections = [x.strip() for x in
|
||||
opts.extra_customization.split(',')]
|
||||
|
||||
c.update(blists, collections)
|
||||
c.write()
|
||||
|
||||
@@ -114,6 +114,7 @@ class BookList(_BookList):
|
||||
series_categories = set([])
|
||||
collection_attributes = list(collection_attributes)+['device_collections']
|
||||
for attr in collection_attributes:
|
||||
attr = attr.strip()
|
||||
for book in self:
|
||||
val = getattr(book, attr, None)
|
||||
if not val: continue
|
||||
|
||||
Reference in New Issue
Block a user