mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -04:00
USBMS: Move windows sort drives before checks for main. Should fix a bug detecting iriver story.
This commit is contained in:
parent
34ed17519b
commit
11427001a3
@ -13,7 +13,7 @@ class IRIVER_STORY(USBMS):
|
||||
name = 'Iriver Story Device Interface'
|
||||
gui_name = 'Iriver Story'
|
||||
description = _('Communicate with the Iriver Story reader.')
|
||||
author = _('Kovid Goyal')
|
||||
author = 'Kovid Goyal'
|
||||
supported_platforms = ['windows', 'osx', 'linux']
|
||||
|
||||
# Ordered list of supported formats
|
||||
|
@ -302,13 +302,13 @@ class Device(DeviceConfig, DevicePlugin):
|
||||
drives['main'] = drives.pop('carda')
|
||||
|
||||
drives = self.windows_open_callback(drives)
|
||||
drives = self.windows_sort_drives(drives)
|
||||
|
||||
if drives.get('main', None) is None:
|
||||
raise DeviceError(
|
||||
_('Unable to detect the %s disk drive. Try rebooting.') %
|
||||
self.__class__.__name__)
|
||||
|
||||
drives = self.windows_sort_drives(drives)
|
||||
self._main_prefix = drives.get('main')
|
||||
self._card_a_prefix = drives.get('carda', None)
|
||||
self._card_b_prefix = drives.get('cardb', None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user