diff --git a/src/calibre/customize/builtins.py b/src/calibre/customize/builtins.py index 0b4c2d284e..b3cae84ce7 100644 --- a/src/calibre/customize/builtins.py +++ b/src/calibre/customize/builtins.py @@ -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')] diff --git a/src/calibre/devices/nuut2/__init__.py b/src/calibre/devices/nuut2/__init__.py new file mode 100755 index 0000000000..c705e32a66 --- /dev/null +++ b/src/calibre/devices/nuut2/__init__.py @@ -0,0 +1,2 @@ +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' \ No newline at end of file diff --git a/src/calibre/devices/nuut2/driver.py b/src/calibre/devices/nuut2/driver.py new file mode 100644 index 0000000000..8c0346ed93 --- /dev/null +++ b/src/calibre/devices/nuut2/driver.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- + +__license__ = 'GPL v3' +__copyright__ = '2009, Kovid Goyal ' +__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 + +