mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Windows only driver for the Nook
This commit is contained in:
parent
bd51d08f88
commit
6486e2bee0
@ -409,6 +409,7 @@ from calibre.devices.iliad.driver import ILIAD
|
|||||||
from calibre.devices.irexdr.driver import IREXDR1000
|
from calibre.devices.irexdr.driver import IREXDR1000
|
||||||
from calibre.devices.jetbook.driver import JETBOOK
|
from calibre.devices.jetbook.driver import JETBOOK
|
||||||
from calibre.devices.kindle.driver import KINDLE, KINDLE2, KINDLE_DX
|
from calibre.devices.kindle.driver import KINDLE, KINDLE2, KINDLE_DX
|
||||||
|
from calibre.devices.nook.driver import NOOK
|
||||||
from calibre.devices.prs500.driver import PRS500
|
from calibre.devices.prs500.driver import PRS500
|
||||||
from calibre.devices.prs505.driver import PRS505
|
from calibre.devices.prs505.driver import PRS505
|
||||||
from calibre.devices.prs700.driver import PRS700
|
from calibre.devices.prs700.driver import PRS700
|
||||||
@ -464,6 +465,7 @@ plugins += [
|
|||||||
KINDLE,
|
KINDLE,
|
||||||
KINDLE2,
|
KINDLE2,
|
||||||
KINDLE_DX,
|
KINDLE_DX,
|
||||||
|
NOOK,
|
||||||
PRS505,
|
PRS505,
|
||||||
PRS700,
|
PRS700,
|
||||||
PRS500,
|
PRS500,
|
||||||
|
0
src/calibre/devices/nook/__init__.py
Normal file
0
src/calibre/devices/nook/__init__.py
Normal file
45
src/calibre/devices/nook/driver.py
Normal file
45
src/calibre/devices/nook/driver.py
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2009, John Schember <john at nachtimwald.com>'
|
||||||
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
|
'''
|
||||||
|
Device driver for Barns and Nobel's Nook
|
||||||
|
'''
|
||||||
|
|
||||||
|
from calibre.devices.usbms.driver import USBMS
|
||||||
|
|
||||||
|
class NOOK(USBMS):
|
||||||
|
|
||||||
|
name = 'Nook Device Interface'
|
||||||
|
description = _('Communicate with the Nook eBook reader.')
|
||||||
|
author = 'John Schember'
|
||||||
|
supported_platforms = ['windows', 'linux', 'osx']
|
||||||
|
|
||||||
|
# Ordered list of supported formats
|
||||||
|
FORMATS = ['epub', 'pdb', 'pdf']
|
||||||
|
|
||||||
|
VENDOR_ID = [0x2080]
|
||||||
|
PRODUCT_ID = [0x001]
|
||||||
|
BCD = [0x322]
|
||||||
|
|
||||||
|
VENDOR_NAME = 'B&N'
|
||||||
|
WINDOWS_MAIN_MEM = 'NOOK'
|
||||||
|
WINDOWS_CARD_A_MEM = 'NOOK'
|
||||||
|
|
||||||
|
#OSX_MAIN_MEM = ''
|
||||||
|
|
||||||
|
MAIN_MEMORY_VOLUME_LABEL = 'BN Nook Main Memory'
|
||||||
|
|
||||||
|
EBOOK_DIR_MAIN = 'my documents'
|
||||||
|
SUPPORTS_SUB_DIRS = True
|
||||||
|
|
||||||
|
def windows_sort_drives(self, drives):
|
||||||
|
main = drives.get('main', None)
|
||||||
|
card = drives.get('carda', None)
|
||||||
|
if card and main and card < main:
|
||||||
|
drives['main'] = card
|
||||||
|
drives['carda'] = main
|
||||||
|
|
||||||
|
return drives
|
Loading…
x
Reference in New Issue
Block a user