mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Fix #1125102 (Device detected wrongly)
This commit is contained in:
parent
ea1b4f8032
commit
7e791304e9
@ -413,16 +413,16 @@ class WAYTEQ(USBMS):
|
|||||||
|
|
||||||
name = 'WayteQ device interface'
|
name = 'WayteQ device interface'
|
||||||
gui_name = 'WayteQ xBook'
|
gui_name = 'WayteQ xBook'
|
||||||
description = _('Communicate with the WayteQ Reader')
|
description = _('Communicate with the WayteQ and SPC Dickens Readers')
|
||||||
author = 'Kovid Goyal'
|
author = 'Kovid Goyal'
|
||||||
supported_platforms = ['windows', 'osx', 'linux']
|
supported_platforms = ['windows', 'osx', 'linux']
|
||||||
|
|
||||||
# Ordered list of supported formats
|
# Ordered list of supported formats
|
||||||
FORMATS = ['epub', 'mobi', 'prc', 'fb2', 'txt', 'pdf', 'html', 'rtf', 'chm', 'djvu', 'doc']
|
FORMATS = ['epub', 'mobi', 'prc', 'fb2', 'txt', 'pdf', 'html', 'rtf', 'chm', 'djvu', 'doc']
|
||||||
|
|
||||||
VENDOR_ID = [0x05e3]
|
VENDOR_ID = [0x05e3, 0x0c45]
|
||||||
PRODUCT_ID = [0x0726]
|
PRODUCT_ID = [0x0726, 0x0184]
|
||||||
BCD = [0x0222]
|
BCD = [0x0222, 0x0100]
|
||||||
|
|
||||||
EBOOK_DIR_MAIN = 'Documents'
|
EBOOK_DIR_MAIN = 'Documents'
|
||||||
SCAN_FROM_ROOT = True
|
SCAN_FROM_ROOT = True
|
||||||
@ -431,6 +431,14 @@ class WAYTEQ(USBMS):
|
|||||||
WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = 'RK28_SDK_DEMO'
|
WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = 'RK28_SDK_DEMO'
|
||||||
SUPPORTS_SUB_DIRS = True
|
SUPPORTS_SUB_DIRS = True
|
||||||
|
|
||||||
|
def get_gui_name(self):
|
||||||
|
try:
|
||||||
|
if self.detected_device.idVendor == 0x0c45:
|
||||||
|
return 'SPC Dickens'
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
return self.gui_name
|
||||||
|
|
||||||
def get_carda_ebook_dir(self, for_upload=False):
|
def get_carda_ebook_dir(self, for_upload=False):
|
||||||
if for_upload:
|
if for_upload:
|
||||||
return 'Documents'
|
return 'Documents'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user