mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add supernote a5x product id
This commit is contained in:
parent
3ce5b7f2ad
commit
1ce8a59eea
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user