From 295cc5b0b1d3b55e5cfc27021e4f60760692f374 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 7 Jul 2014 08:10:30 +0530 Subject: [PATCH] Fix #1338219 [Tolino Shine SW Rev. 1.4.5 requires ebooks in directory Books](https://bugs.launchpad.net/calibre/+bug/1338219) --- src/calibre/devices/eb600/driver.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/calibre/devices/eb600/driver.py b/src/calibre/devices/eb600/driver.py index 93ff6fe200..877519db8d 100644 --- a/src/calibre/devices/eb600/driver.py +++ b/src/calibre/devices/eb600/driver.py @@ -62,9 +62,9 @@ class TOLINO(EB600): 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. Some Tolino devices may need this option.'), + ':::' + + _('Check this box if the device\'s main memory is being seen as card a and the card ' + 'is being seen as main memory. Some Tolino devices may need this option.'), ] EXTRA_CUSTOMIZATION_DEFAULT = [ @@ -98,8 +98,9 @@ class TOLINO(EB600): def post_open_callback(self): # The Tolino Vision only handles books inside the Books folder - product_id = self.device_being_opened[1] - self.ebook_dir_for_upload = 'Books' if product_id == 0x6033 else '' + product_id, bcd = self.device_being_opened[1], self.device_being_opened[2] + is_tolino = product_id == 0x6033 or (product_id == 0x1688 and bcd == 0x226) + self.ebook_dir_for_upload = 'Books' if is_tolino else '' def get_main_ebook_dir(self, for_upload=False): if for_upload: