mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix customizing driver plugin leads to tags not being sent to device
This commit is contained in:
parent
a5204b6eac
commit
ff99f2af2b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user