From 12a466e2ff74ac00ea4705a910e6bb70efb17aba Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 20 May 2010 21:42:53 -0600 Subject: [PATCH] Support for the Newsmy reader. Fixes #5559 (Adding new eReader device) --- src/calibre/customize/builtins.py | 3 ++- src/calibre/devices/teclast/driver.py | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/calibre/customize/builtins.py b/src/calibre/customize/builtins.py index 52ec8fa255..73c89968de 100644 --- a/src/calibre/customize/builtins.py +++ b/src/calibre/customize/builtins.py @@ -452,7 +452,7 @@ from calibre.devices.iriver.driver import IRIVER_STORY from calibre.devices.binatone.driver import README from calibre.devices.hanvon.driver import N516, EB511, ALEX, AZBOOKA from calibre.devices.edge.driver import EDGE -from calibre.devices.teclast.driver import TECLAST_K3 +from calibre.devices.teclast.driver import TECLAST_K3, NEWSMY from calibre.devices.sne.driver import SNE from calibre.devices.misc import PALMPRE, KOBO, AVANT @@ -533,6 +533,7 @@ plugins += [ EB511, ELONEX, TECLAST_K3, + NEWSMY, EDGE, SNE, ALEX, diff --git a/src/calibre/devices/teclast/driver.py b/src/calibre/devices/teclast/driver.py index 7f95bcbffe..e6702b230b 100644 --- a/src/calibre/devices/teclast/driver.py +++ b/src/calibre/devices/teclast/driver.py @@ -39,4 +39,17 @@ class TECLAST_K3(USBMS): return drives +class NEWSMY(TECLAST_K3): + name = 'Newsmy device interface' + gui_name = 'Newsmy' + description = _('Communicate with the Newsmy reader.') + + FORMATS = ['epub', 'fb2', 'pdb', 'html', 'pdf', 'txt', 'skt'] + + VENDOR_NAME = '' + WINDOWS_MAIN_MEM = 'NEWSMY' + WINDOWS_CARD_A_MEM = 'USBDISK____SD' + + def windows_sort_drives(self, drives): + return drives