From 1ce8a59eea800312881a04d05f58cd6055d9b7c8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 23 Dec 2021 10:26:22 +0530 Subject: [PATCH] Add supernote a5x product id --- src/calibre/devices/mtp/defaults.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/calibre/devices/mtp/defaults.py b/src/calibre/devices/mtp/defaults.py index acda66f3d3..49dfec73dd 100644 --- a/src/calibre/devices/mtp/defaults.py +++ b/src/calibre/devices/mtp/defaults.py @@ -12,6 +12,12 @@ from calibre.constants import iswindows from polyglot.builtins import iteritems +supernote_settings = { + 'calibre_file_paths': {'metadata':'Document/metadata.calibre', 'driveinfo':'Document/driveinfo.calibre'}, + 'send_to': ['Document', 'Documents'], +} + + class DeviceDefaults: def __init__(self): @@ -30,11 +36,9 @@ class DeviceDefaults: 'eBooks/import', 'eBooks', 'sdcard/ebooks'], } ), - # Supernote A5 - ({'vendor': 0x2207, 'product': 0x0031}, { - 'calibre_file_paths': {'metadata':'Document/metadata.calibre', 'driveinfo':'Document/driveinfo.calibre'}, - 'send_to': ['Document', 'Documents'], - }), + # Supernote A5 and A5X + ({'vendor': 0x2207, 'product': 0x0031}, supernote_settings), + ({'vendor': 0x2207, 'product': 0x0011}, supernote_settings), ) def __call__(self, device, driver):