mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
597c47917f
commit
f0d2639930
@ -31,8 +31,9 @@ class DeviceDefaults:
|
||||
# B&N devices
|
||||
({'vendor':0x2080}, {
|
||||
'format_map': ['epub', 'pdf'],
|
||||
'send_to': ['NOOK/My Books', 'NOOK/My Files', 'NOOK', 'Calibre_Companion', 'Books',
|
||||
'eBooks/import', 'eBooks', 'sdcard/ebooks'],
|
||||
# NOOK does not allow writing files into root
|
||||
'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
|
||||
@ -64,8 +65,6 @@ class DeviceDefaults:
|
||||
break
|
||||
if matches:
|
||||
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 {}, vid, pid
|
||||
|
@ -86,10 +86,12 @@ class NOOK_COLOR(NOOK):
|
||||
0x002, 0x003, 0x004,
|
||||
0x005, # Nook HD+
|
||||
0x007, # Glowlight from 2013
|
||||
# 0xa, # Glowlight from 2016 is MTP based device
|
||||
0xb, # Glowlight from 2017
|
||||
0xc, # Glowlight from 2019
|
||||
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]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user