Preliminary (OS X only) driver for the Nuut2

This commit is contained in:
Kovid Goyal 2009-10-29 13:38:13 -06:00
parent a28079ff17
commit 7529db7587
3 changed files with 48 additions and 1 deletions

View File

@ -371,6 +371,7 @@ from calibre.devices.prs505.driver import PRS505
from calibre.devices.prs700.driver import PRS700
from calibre.devices.android.driver import ANDROID
from calibre.devices.eslick.driver import ESLICK
from calibre.devices.nuut2.driver import NUUT2
plugins = [HTML2ZIP]
plugins += [
@ -425,7 +426,8 @@ plugins += [
CYBOOK_OPUS,
COOL_ER,
SHINEBOOK,
ESLICK
ESLICK,
NUUT2
]
plugins += [x for x in list(locals().values()) if isinstance(x, type) and \
x.__name__.endswith('MetadataReader')]

View File

@ -0,0 +1,2 @@
__license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'

View File

@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL v3'
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
'''
Device driver for the Nuut2
'''
from calibre.devices.usbms.driver import USBMS
class NUUT2(USBMS):
name = 'Nuut2 Device Interface'
gui_name = 'NeoLux Nuut2'
description = _('Communicate with the Nuut2 eBook reader.')
author = _('Kovid Goyal')
supported_platforms = ['windows', 'osx', 'linux']
# Ordered list of supported formats
FORMATS = ['epub', 'pdft', 'txt']
DRM_FORMATS = ['epub']
VENDOR_ID = [0x140e]
PRODUCT_ID = [0xb055]
BCD = [0x318]
#VENDOR_NAME = 'NETRONIX'
#WINDOWS_MAIN_MEM = 'EBOOK'
#WINDOWS_CARD_A_MEM = 'EBOOK'
OSX_MAIN_MEM = 'NEXTPPRS MASS STORAGE Media'
#OSX_CARD_A_MEM = 'EB600 Card Storage Media'
MAIN_MEMORY_VOLUME_LABEL = 'NUUT2 Main Memory'
STORAGE_CARD_VOLUME_LABEL = 'NUUT2 Storage Card'
EBOOK_DIR_MAIN = 'books'
EBOOK_DIR_CARD_A = 'books'
SUPPORTS_SUB_DIRS = True