NOOK driver: For the Glowlight 2023 write the calibre metadata files into the NOOK sub-folder as the firmware doesnt allow writing files into the root folder

This commit is contained in:
Kovid Goyal 2023-09-28 09:48:01 +05:30
parent 597c47917f
commit f0d2639930
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 5 deletions

View File

@ -31,8 +31,9 @@ class DeviceDefaults:
# B&N devices # B&N devices
({'vendor':0x2080}, { ({'vendor':0x2080}, {
'format_map': ['epub', 'pdf'], 'format_map': ['epub', 'pdf'],
'send_to': ['NOOK/My Books', 'NOOK/My Files', 'NOOK', 'Calibre_Companion', 'Books', # NOOK does not allow writing files into root
'eBooks/import', 'eBooks', 'sdcard/ebooks'], 'calibre_file_paths': {'metadata':'NOOK/metadata.calibre', 'driveinfo':'NOOK/driveinfo.calibre'},
'send_to': ['NOOK/My Books', 'NOOK/My Files', 'NOOK', 'Calibre_Companion', 'Books', 'eBooks/import', 'eBooks', 'sdcard/ebooks'],
} }
), ),
# Supernote A5 and A5X # Supernote A5 and A5X
@ -64,8 +65,6 @@ class DeviceDefaults:
break break
if matches: if matches:
ans = rule[1] ans = rule[1]
if vid == 0x2080 and pid == 0x000a:
ans['calibre_file_paths'] = {'metadata':'NOOK/metadata.calibre', 'driveinfo':'NOOK/driveinfo.calibre'}
return ans, vid, pid return ans, vid, pid
return {}, vid, pid return {}, vid, pid

View File

@ -86,10 +86,12 @@ class NOOK_COLOR(NOOK):
0x002, 0x003, 0x004, 0x002, 0x003, 0x004,
0x005, # Nook HD+ 0x005, # Nook HD+
0x007, # Glowlight from 2013 0x007, # Glowlight from 2013
# 0xa, # Glowlight from 2016 is MTP based device
0xb, # Glowlight from 2017 0xb, # Glowlight from 2017
0xc, # Glowlight from 2019 0xc, # Glowlight from 2019
0xd, # Glowlight from 2021 0xd, # Glowlight from 2021
0xe, # Glowlight from 2021 0xe, # Glowlight from 2022
# 0xf, # Glowlight from 2023 is MTP based device
] ]
BCD = [0x216, 0x9999, 0x409, 0x440] BCD = [0x216, 0x9999, 0x409, 0x440]