mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-31 11:35:49 +01:00
Fix plugboard problem where customizations to formats accepted by a device were ignored.
This commit is contained in:
commit
ae4840a88c
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ def field_cmp(x, y):
|
|||
self.device_to_formats_map = {}
|
||||
for device in device_plugins():
|
||||
n = device_name_for_plugboards(device)
|
||||
self.device_to_formats_map[n] = set(device.FORMATS)
|
||||
self.device_to_formats_map[n] = set(device.settings().format_map)
|
||||
if getattr(device, 'CAN_DO_DEVICE_DB_PLUGBOARD', False):
|
||||
self.device_to_formats_map[n].add('device_db')
|
||||
if n not in self.devices:
|
||||
|
|
|
|||
Loading…
Reference in a new issue