mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Support Ganaxa Ger2 ereader.
This commit is contained in:
parent
3216eccce7
commit
2d2ec5fb51
@ -404,7 +404,7 @@ from calibre.devices.bebook.driver import BEBOOK, BEBOOK_MINI
|
|||||||
from calibre.devices.blackberry.driver import BLACKBERRY
|
from calibre.devices.blackberry.driver import BLACKBERRY
|
||||||
from calibre.devices.cybookg3.driver import CYBOOKG3, CYBOOK_OPUS
|
from calibre.devices.cybookg3.driver import CYBOOKG3, CYBOOK_OPUS
|
||||||
from calibre.devices.eb600.driver import EB600, COOL_ER, SHINEBOOK, \
|
from calibre.devices.eb600.driver import EB600, COOL_ER, SHINEBOOK, \
|
||||||
POCKETBOOK360
|
POCKETBOOK360, GER2
|
||||||
from calibre.devices.iliad.driver import ILIAD
|
from calibre.devices.iliad.driver import ILIAD
|
||||||
from calibre.devices.irexdr.driver import IREXDR1000
|
from calibre.devices.irexdr.driver import IREXDR1000
|
||||||
from calibre.devices.jetbook.driver import JETBOOK
|
from calibre.devices.jetbook.driver import JETBOOK
|
||||||
@ -476,7 +476,8 @@ plugins += [
|
|||||||
ESLICK,
|
ESLICK,
|
||||||
NUUT2,
|
NUUT2,
|
||||||
IRIVER_STORY,
|
IRIVER_STORY,
|
||||||
POCKETBOOK360
|
POCKETBOOK360,
|
||||||
|
GER2,
|
||||||
]
|
]
|
||||||
plugins += [x for x in list(locals().values()) if isinstance(x, type) and \
|
plugins += [x for x in list(locals().values()) if isinstance(x, type) and \
|
||||||
x.__name__.endswith('MetadataReader')]
|
x.__name__.endswith('MetadataReader')]
|
||||||
|
@ -78,6 +78,14 @@ class CYBOOKG3(USBMS):
|
|||||||
|
|
||||||
return zip(paths, cycle([on_card]))
|
return zip(paths, cycle([on_card]))
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
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 True
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
class CYBOOK_OPUS(CYBOOKG3):
|
class CYBOOK_OPUS(CYBOOKG3):
|
||||||
|
|
||||||
@ -103,3 +111,11 @@ class CYBOOK_OPUS(CYBOOKG3):
|
|||||||
EBOOK_DIR_MAIN = 'eBooks'
|
EBOOK_DIR_MAIN = 'eBooks'
|
||||||
EBOOK_DIR_CARD_A = 'eBooks'
|
EBOOK_DIR_CARD_A = 'eBooks'
|
||||||
SUPPORTS_SUB_DIRS = True
|
SUPPORTS_SUB_DIRS = True
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def can_handle(cls, device_info, debug=False):
|
||||||
|
USBMS.can_handle(device_info, debug)
|
||||||
|
if islinux:
|
||||||
|
if device_info[3] == 'Bookeen':
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
@ -21,7 +21,7 @@ class EB600(USBMS):
|
|||||||
|
|
||||||
name = 'Netronix EB600 Device Interface'
|
name = 'Netronix EB600 Device Interface'
|
||||||
description = _('Communicate with the EB600 eBook reader.')
|
description = _('Communicate with the EB600 eBook reader.')
|
||||||
author = _('Kovid Goyal')
|
author = 'Kovid Goyal'
|
||||||
supported_platforms = ['windows', 'osx', 'linux']
|
supported_platforms = ['windows', 'osx', 'linux']
|
||||||
|
|
||||||
# Ordered list of supported formats
|
# Ordered list of supported formats
|
||||||
@ -97,3 +97,18 @@ class POCKETBOOK360(EB600):
|
|||||||
OSX_MAIN_MEM = 'Philips Mass Storge Media'
|
OSX_MAIN_MEM = 'Philips Mass Storge Media'
|
||||||
OSX_CARD_A_MEM = 'Philips Mass Storge Media'
|
OSX_CARD_A_MEM = 'Philips Mass Storge Media'
|
||||||
|
|
||||||
|
class GER2(EB600):
|
||||||
|
|
||||||
|
name = 'Ganaxa GeR2 Device Interface'
|
||||||
|
gui_name = 'Ganaxa GeR2'
|
||||||
|
supported_platforms = ['windows']
|
||||||
|
|
||||||
|
FORMATS = ['pdf']
|
||||||
|
|
||||||
|
VENDOR_ID = [0xbda]
|
||||||
|
PRODUCT_ID = [0x703]
|
||||||
|
BCD = [0x132]
|
||||||
|
|
||||||
|
VENDOR_NAME = 'GANAXA'
|
||||||
|
WINDOWS_MAIN_MEN = 'GER2_________-FD'
|
||||||
|
WINDOWS_CARD_A_MEM = 'GER2_________-SD'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user