Fix Bookeen Saga not being recognized on macOS/Linux. Fixes #1769681 [New device "Bookeen Saga" not detected](https://bugs.launchpad.net/calibre/+bug/1769681)

This commit is contained in:
Kovid Goyal 2018-05-07 21:54:55 +05:30
parent 3b1238325d
commit 2a406cb55d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -79,8 +79,8 @@ class ORIZON(CYBOOK):
EBOOK_DIR_MAIN = EBOOK_DIR_CARD_A = 'Digital Editions' EBOOK_DIR_MAIN = EBOOK_DIR_CARD_A = 'Digital Editions'
EXTRA_CUSTOMIZATION_MESSAGE = [ EXTRA_CUSTOMIZATION_MESSAGE = [
_('Card A folder') + ':::<p>' + _('Card A folder') + ':::<p>' + _(
_('Enter the folder where the books are to be stored when sent to the ' 'Enter the folder where the books are to be stored when sent to the '
'memory card. This folder is prepended to any send to device template') + '</p>', 'memory card. This folder is prepended to any send to device template') + '</p>',
] ]
EXTRA_CUSTOMIZATION_DEFAULT = [EBOOK_DIR_CARD_A] EXTRA_CUSTOMIZATION_DEFAULT = [EBOOK_DIR_CARD_A]
@ -136,5 +136,5 @@ class MUSE(CYBOOK):
@classmethod @classmethod
def can_handle(cls, device_info, debug=False): def can_handle(cls, device_info, debug=False):
if isunix: if isunix:
return device_info[3] == 'Bookeen' and device_info[4] in ('Cybook', 'Lev', 'Nolimbook', 'Letto', 'Nolim') return device_info[3] == 'Bookeen' and device_info[4] in ('Cybook', 'Lev', 'Nolimbook', 'Letto', 'Nolim', 'Saga')
return True return True