From 6c5d5e4582aac5dde6f269844aafb3222a456e72 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 26 Dec 2012 10:05:03 +0530 Subject: [PATCH] Fix #1093570 (Adding Support for Kibano e-reader) --- src/calibre/customize/builtins.py | 4 ++-- src/calibre/devices/hanvon/driver.py | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/calibre/customize/builtins.py b/src/calibre/customize/builtins.py index 61f3031b8e..8229f32b57 100644 --- a/src/calibre/customize/builtins.py +++ b/src/calibre/customize/builtins.py @@ -661,7 +661,7 @@ from calibre.devices.nuut2.driver import NUUT2 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, THEBOOK, - LIBREAIR, ODYSSEY) + LIBREAIR, ODYSSEY, KIBANO) from calibre.devices.edge.driver import EDGE from calibre.devices.teclast.driver import (TECLAST_K3, NEWSMY, IPAPYRUS, SOVOS, PICO, SUNSTECH_EB700, ARCHOS7O, STASH, WEXLER) @@ -712,7 +712,7 @@ plugins += [ BOOQ, EB600, README, - N516, + N516, KIBANO, THEBOOK, LIBREAIR, EB511, ELONEX, diff --git a/src/calibre/devices/hanvon/driver.py b/src/calibre/devices/hanvon/driver.py index defa5bf477..c967f2c54c 100644 --- a/src/calibre/devices/hanvon/driver.py +++ b/src/calibre/devices/hanvon/driver.py @@ -41,6 +41,20 @@ class N516(USBMS): def can_handle(self, device_info, debug=False): return not is_alex(device_info) +class KIBANO(N516): + + name = 'Kibano driver' + gui_name = 'Kibano' + description = _('Communicate with the Kibano eBook reader.') + FORMATS = ['epub', 'pdf', 'txt'] + BCD = [0x323] + + VENDOR_NAME = 'EBOOK' + # We use EXTERNAL_SD_CARD for main mem as some devices have not working + # main memories + WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = ['INTERNAL_SD_CARD', + 'EXTERNAL_SD_CARD'] + class THEBOOK(N516): name = 'The Book driver' gui_name = 'The Book'