mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-05 21:05:17 +01:00
Merge from trunk
This commit is contained in:
commit
4dc9bb212f
2 changed files with 3 additions and 3 deletions
|
|
@ -59,14 +59,14 @@ class ALEX(N516):
|
|||
description = _('Communicate with the SpringDesign Alex eBook reader.')
|
||||
author = 'Kovid Goyal'
|
||||
|
||||
FORMATS = ['epub', 'pdf']
|
||||
FORMATS = ['epub', 'fb2', 'pdf']
|
||||
VENDOR_NAME = 'ALEX'
|
||||
WINDOWS_MAIN_MEM = 'READER'
|
||||
|
||||
MAIN_MEMORY_VOLUME_LABEL = 'Alex Internal Memory'
|
||||
|
||||
EBOOK_DIR_MAIN = 'eBooks'
|
||||
SUPPORTS_SUB_DIRS = True
|
||||
SUPPORTS_SUB_DIRS = False
|
||||
|
||||
def can_handle(self, device_info, debug=False):
|
||||
return is_alex(device_info)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ def __init__(self, library_path, progress_callback=None):
|
|||
self.src_library_path = os.path.abspath(library_path)
|
||||
self.progress_callback = progress_callback
|
||||
self.db_id_regexp = re.compile(r'^.* \((\d+)\)$')
|
||||
self.bad_ext_pat = re.compile(r'[^a-z]+')
|
||||
self.bad_ext_pat = re.compile(r'[^a-z0-9]+')
|
||||
if not callable(self.progress_callback):
|
||||
self.progress_callback = lambda x, y: x
|
||||
self.dirs = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue