From ef070d0e51081587bc30646bf69257bed3c4fa58 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 8 Oct 2010 11:39:11 -0600 Subject: [PATCH] Support for PD Novel running Kobo --- src/calibre/customize/builtins.py | 3 ++- src/calibre/devices/misc.py | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/calibre/customize/builtins.py b/src/calibre/customize/builtins.py index 0a10b79bd3..6fda73f785 100644 --- a/src/calibre/customize/builtins.py +++ b/src/calibre/customize/builtins.py @@ -461,7 +461,7 @@ from calibre.devices.edge.driver import EDGE from calibre.devices.teclast.driver import TECLAST_K3, NEWSMY, IPAPYRUS, SOVOS from calibre.devices.sne.driver import SNE from calibre.devices.misc import PALMPRE, AVANT, SWEEX, PDNOVEL, KOGAN, \ - GEMEI, VELOCITYMICRO + GEMEI, VELOCITYMICRO, PDNOVEL_KOBO from calibre.devices.folder_device.driver import FOLDER_DEVICE_FOR_CONFIG from calibre.devices.kobo.driver import KOBO @@ -574,6 +574,7 @@ plugins += [ SPECTRA, GEMEI, VELOCITYMICRO, + PDNOVEL_KOBO, ITUNES, ] plugins += [x for x in list(locals().values()) if isinstance(x, type) and \ diff --git a/src/calibre/devices/misc.py b/src/calibre/devices/misc.py index f98b6f7103..a1c9b790e4 100644 --- a/src/calibre/devices/misc.py +++ b/src/calibre/devices/misc.py @@ -108,6 +108,16 @@ class PDNOVEL(USBMS): with open('%s.jpg' % os.path.join(path, filename), 'wb') as coverfile: coverfile.write(coverdata[2]) +class PDNOVEL_KOBO(PDNOVEL): + name = 'Pandigital Kobo device interface' + gui_name = 'PD Novel (Kobo)' + description = _('Communicate with the Pandigital Novel') + + BCD = [0x222] + + EBOOK_DIR_MAIN = 'eBooks/Kobo' + + class VELOCITYMICRO(USBMS): name = 'VelocityMicro device interface' gui_name = 'VelocityMicro'