mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression that broke device detection for Cybook devices in 0.6.28 on windows and linux
This commit is contained in:
parent
b632639ff7
commit
3345f311dd
@ -82,9 +82,8 @@ class CYBOOKG3(USBMS):
|
||||
def can_handle(cls, device_info, debug=False):
|
||||
USBMS.can_handle(device_info, debug)
|
||||
if islinux:
|
||||
if device_info[3] == 'Bookeen' and device_info[4] == 'Cybook Gen3':
|
||||
return device_info[3] == 'Bookeen' and device_info[4] == 'Cybook Gen3'
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
class CYBOOK_OPUS(CYBOOKG3):
|
||||
@ -92,7 +91,7 @@ class CYBOOK_OPUS(CYBOOKG3):
|
||||
name = 'Cybook Opus Device Interface'
|
||||
gui_name = 'Cybook Opus'
|
||||
description = _('Communicate with the Cybook Opus eBook reader.')
|
||||
author = _('John Schember')
|
||||
author = 'John Schember'
|
||||
supported_platforms = ['windows', 'osx', 'linux']
|
||||
|
||||
FORMATS = ['epub', 'pdf', 'txt']
|
||||
@ -116,6 +115,5 @@ class CYBOOK_OPUS(CYBOOKG3):
|
||||
def can_handle(cls, device_info, debug=False):
|
||||
USBMS.can_handle(device_info, debug)
|
||||
if islinux:
|
||||
if device_info[3] == 'Bookeen':
|
||||
return device_info[3] == 'Bookeen'
|
||||
return True
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user