diff --git a/src/calibre/devices/eb600/driver.py b/src/calibre/devices/eb600/driver.py index 12812f3..a55de89 100644 --- a/src/calibre/devices/eb600/driver.py +++ b/src/calibre/devices/eb600/driver.py @@ -59,11 +59,27 @@ class TOLINO(EB600): VENDOR_NAME = ['DEUTSCHE'] WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = ['_TELEKOMTOLINO'] + EXTRA_CUSTOMIZATION_MESSAGE = [ + _('Swap main and card A') + + ':::' + + _('Check this box if the device\'s main memory is being seen as card a and the card ' + 'is being seen as main memory. Most Tolino devices need this option.'), + ] + + EXTRA_CUSTOMIZATION_DEFAULT = [ + True, + ] + + OPT_SWAP_MEMORY = 0 + # There are apparently two versions of this device, one with swapped # drives and one without, see https://bugs.launchpad.net/bugs/1240504 def linux_swap_drives(self, drives): + e = self.settings().extra_customization if len(drives) < 2 or not drives[0] or not drives[1]: return drives + elif not e[self.OPT_SWAP_MEMORY]: + return drives drives = list(drives) t = drives[0] drives[0] = drives[1]