Add supernote a5x product id

This commit is contained in:
Kovid Goyal 2021-12-23 10:26:22 +05:30
parent 3ce5b7f2ad
commit 1ce8a59eea
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -12,6 +12,12 @@ from calibre.constants import iswindows
from polyglot.builtins import iteritems from polyglot.builtins import iteritems
supernote_settings = {
'calibre_file_paths': {'metadata':'Document/metadata.calibre', 'driveinfo':'Document/driveinfo.calibre'},
'send_to': ['Document', 'Documents'],
}
class DeviceDefaults: class DeviceDefaults:
def __init__(self): def __init__(self):
@ -30,11 +36,9 @@ class DeviceDefaults:
'eBooks/import', 'eBooks', 'sdcard/ebooks'], 'eBooks/import', 'eBooks', 'sdcard/ebooks'],
} }
), ),
# Supernote A5 # Supernote A5 and A5X
({'vendor': 0x2207, 'product': 0x0031}, { ({'vendor': 0x2207, 'product': 0x0031}, supernote_settings),
'calibre_file_paths': {'metadata':'Document/metadata.calibre', 'driveinfo':'Document/driveinfo.calibre'}, ({'vendor': 0x2207, 'product': 0x0011}, supernote_settings),
'send_to': ['Document', 'Documents'],
}),
) )
def __call__(self, device, driver): def __call__(self, device, driver):