From 9c8a7db894a1c9068f1abf900ef11c8e4d818ad7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 29 Jun 2011 10:54:09 -0600 Subject: [PATCH] Fix #802251 (Add support for mpman MOOVYBOOK7 ebook reader) --- src/calibre/customize/builtins.py | 5 +++-- src/calibre/devices/misc.py | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/src/calibre/customize/builtins.py b/src/calibre/customize/builtins.py index 333a5baaa4..4858b585ae 100644 --- a/src/calibre/customize/builtins.py +++ b/src/calibre/customize/builtins.py @@ -611,7 +611,7 @@ from calibre.devices.teclast.driver import (TECLAST_K3, NEWSMY, IPAPYRUS, from calibre.devices.sne.driver import SNE from calibre.devices.misc import (PALMPRE, AVANT, SWEEX, PDNOVEL, GEMEI, VELOCITYMICRO, PDNOVEL_KOBO, LUMIREAD, ALURATEK_COLOR, - TREKSTOR, EEEREADER, NEXTBOOK, ADAM) + TREKSTOR, EEEREADER, NEXTBOOK, ADAM, MOOVYBOOK) from calibre.devices.folder_device.driver import FOLDER_DEVICE_FOR_CONFIG from calibre.devices.kobo.driver import KOBO from calibre.devices.bambook.driver import BAMBOOK @@ -746,6 +746,7 @@ plugins += [ EEEREADER, NEXTBOOK, ADAM, + MOOVYBOOK, ITUNES, BOEYE_BEX, BOEYE_BDX, @@ -1382,7 +1383,7 @@ class StoreOpenBooksStore(StoreBase): name = 'Open Books' description = u'Comprehensive listing of DRM free ebooks from a variety of sources provided by users of calibre.' actual_plugin = 'calibre.gui2.store.stores.open_books_plugin:OpenBooksStore' - + drm_free_only = True headquarters = 'US' diff --git a/src/calibre/devices/misc.py b/src/calibre/devices/misc.py index 2a6a76719d..6c5706f039 100644 --- a/src/calibre/devices/misc.py +++ b/src/calibre/devices/misc.py @@ -329,3 +329,25 @@ class NEXTBOOK(USBMS): f.write(metadata.thumbnail[-1]) ''' +class MOOVYBOOK(USBMS): + + name = 'Moovybook device interface' + gui_name = 'Moovybook' + description = _('Communicate with the Moovybook Reader') + author = 'Kovid Goyal' + supported_platforms = ['windows', 'osx', 'linux'] + + # Ordered list of supported formats + FORMATS = ['epub', 'txt', 'pdf'] + + VENDOR_ID = [0x1cae] + PRODUCT_ID = [0x9b08] + BCD = [0x02] + + EBOOK_DIR_MAIN = '' + + SUPPORTS_SUB_DIRS = True + + def get_main_ebook_dir(self, for_upload=False): + return 'Books' if for_upload else self.EBOOK_DIR_MAIN +