mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Fix #1338219 [Tolino Shine SW Rev. 1.4.5 requires ebooks in directory Books](https://bugs.launchpad.net/calibre/+bug/1338219)
This commit is contained in:
parent
6ecbbc03f6
commit
295cc5b0b1
@ -98,8 +98,9 @@ class TOLINO(EB600):
|
|||||||
|
|
||||||
def post_open_callback(self):
|
def post_open_callback(self):
|
||||||
# The Tolino Vision only handles books inside the Books folder
|
# The Tolino Vision only handles books inside the Books folder
|
||||||
product_id = self.device_being_opened[1]
|
product_id, bcd = self.device_being_opened[1], self.device_being_opened[2]
|
||||||
self.ebook_dir_for_upload = 'Books' if product_id == 0x6033 else ''
|
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):
|
def get_main_ebook_dir(self, for_upload=False):
|
||||||
if for_upload:
|
if for_upload:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user