Skip to content

Commit

Permalink
Driver for the new Bookeen Diva HD
Browse files Browse the repository at this point in the history
Fixes #1854063 [Driver for Bookeen Diva HD](https://bugs.launchpad.net/calibre/+bug/1854063)
  • Loading branch information
kovidgoyal committed Nov 26, 2019
1 parent 6144b06 commit c821f59
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/calibre/customize/builtins.py
Expand Up @@ -710,7 +710,7 @@ def set_metadata(self, stream, mi, type):
# Device driver plugins {{{
from calibre.devices.hanlin.driver import HANLINV3, HANLINV5, BOOX, SPECTRA
from calibre.devices.blackberry.driver import BLACKBERRY, PLAYBOOK
from calibre.devices.cybook.driver import CYBOOK, ORIZON, MUSE
from calibre.devices.cybook.driver import CYBOOK, ORIZON, MUSE, DIVA
from calibre.devices.eb600.driver import (EB600, COOL_ER, SHINEBOOK, TOLINO,
POCKETBOOK360, GER2, ITALICA, ECLICTO, DBOOK, INVESBOOK,
BOOQ, ELONEX, POCKETBOOK301, MENTOR, POCKETBOOK602,
Expand Down Expand Up @@ -753,7 +753,7 @@ def set_metadata(self, stream, mi, type):
HANLINV3,
HANLINV5,
BLACKBERRY, PLAYBOOK,
CYBOOK, ORIZON, MUSE,
CYBOOK, ORIZON, MUSE, DIVA,
ILIAD,
IREXDR1000,
IREXDR800,
Expand Down
16 changes: 16 additions & 0 deletions src/calibre/devices/cybook/driver.py
Expand Up @@ -139,3 +139,19 @@ def can_handle(cls, device_info, debug=False):
if isunix:
return device_info[3] == 'Bookeen' and device_info[4] in ('Cybook', 'Lev', 'Nolimbook', 'Letto', 'Nolim', 'Saga', 'NolimbookXL')
return True


class DIVA(CYBOOK):

name = 'Bookeen Diva HD Device Interface'
gui_name = 'Diva HD'
description = _('Communicate with the Bookeen Diva HD e-book reader.')
author = 'Kovid Goyal'

VENDOR_ID = [0x1d6b]
PRODUCT_ID = [0x0104]
BCD = [0x100]

FORMATS = ['epub', 'html', 'fb2', 'txt', 'pdf']
EBOOK_DIR_MAIN = 'Books'
SCAN_FROM_ROOT = True

0 comments on commit c821f59

Please sign in to comment.