mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Use NOOK_COLOR for the Glowlight 4
This commit is contained in:
parent
95b852684e
commit
fe7c125d6d
@ -29,8 +29,8 @@ class NOOK(USBMS):
|
||||
FORMATS = ['epub', 'pdb', 'pdf']
|
||||
|
||||
VENDOR_ID = [0x2080, 0x18d1] # 0x18d1 is for softrooted nook
|
||||
PRODUCT_ID = [0x001, 0xd] # 0xd is Glowlight 4
|
||||
BCD = [0x322, 0x409]
|
||||
PRODUCT_ID = [0x001]
|
||||
BCD = [0x322]
|
||||
|
||||
VENDOR_NAME = 'B&N'
|
||||
WINDOWS_MAIN_MEM = 'NOOK'
|
||||
@ -89,8 +89,9 @@ class NOOK_COLOR(NOOK):
|
||||
0x007, # Glowlight from 2013
|
||||
0xb, # Glowlight from 2017
|
||||
0xc, # Glowlight from 2019
|
||||
0xd, # Glowlight from 2021
|
||||
]
|
||||
BCD = [0x216, 0x9999]
|
||||
BCD = [0x216, 0x9999, 0x409]
|
||||
|
||||
WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = ['EBOOK_DISK', 'NOOK_TABLET',
|
||||
'NOOK_SIMPLETOUCH', 'NOOK_GLOWLIGHT']
|
||||
@ -105,7 +106,7 @@ class NOOK_COLOR(NOOK):
|
||||
product_id = self.device_being_opened[1]
|
||||
if DEBUG:
|
||||
prints('Opened NOOK with product id:', product_id)
|
||||
if product_id in (0xb, 0xc):
|
||||
if product_id in (0xb, 0xc, 0xd):
|
||||
if DEBUG:
|
||||
prints('Setting Nook upload directory to NOOK/My Files')
|
||||
self.EBOOK_DIR_MAIN = 'NOOK/My Files'
|
||||
|
Loading…
x
Reference in New Issue
Block a user