mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Kobo - fix list for customization messages
This commit is contained in:
parent
debc84b240
commit
2d80aca4b0
@ -48,12 +48,16 @@ class KOBO(USBMS):
|
|||||||
|
|
||||||
VIRTUAL_BOOK_EXTENSIONS = frozenset(['kobo'])
|
VIRTUAL_BOOK_EXTENSIONS = frozenset(['kobo'])
|
||||||
|
|
||||||
EXTRA_CUSTOMIZATION_MESSAGE = _('The Kobo supports only one collection '
|
EXTRA_CUSTOMIZATION_MESSAGE = [
|
||||||
'currently: the \"Im_Reading\" list. Create a tag called \"Im_Reading\" ')+\
|
_('The Kobo supports several collections including ')+\
|
||||||
'for automatic management'
|
'Read, Closed, Im_Reading ' +\
|
||||||
|
_('Create tags for automatic management'),
|
||||||
|
]
|
||||||
|
|
||||||
EXTRA_CUSTOMIZATION_DEFAULT = ', '.join(['tags'])
|
EXTRA_CUSTOMIZATION_DEFAULT = ', '.join(['tags'])
|
||||||
|
|
||||||
|
OPT_COLLECTIONS = 0
|
||||||
|
|
||||||
def initialize(self):
|
def initialize(self):
|
||||||
USBMS.initialize(self)
|
USBMS.initialize(self)
|
||||||
self.book_class = Book
|
self.book_class = Book
|
||||||
@ -723,7 +727,7 @@ class KOBO(USBMS):
|
|||||||
opts = self.settings()
|
opts = self.settings()
|
||||||
if opts.extra_customization:
|
if opts.extra_customization:
|
||||||
collections = [x.lower().strip() for x in
|
collections = [x.lower().strip() for x in
|
||||||
opts.extra_customization.split(',')]
|
opts.extra_customization[self.OPT_COLLECTIONS].split(',')]
|
||||||
else:
|
else:
|
||||||
collections = []
|
collections = []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user