From e75ea57e41c84b6abfdd07c86ed10f66e747f0de Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Sun, 11 Aug 2024 18:37:22 +0200 Subject: [PATCH] Check for tolino device. --- src/calibre/devices/kobo/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index a1e43adda3..0498f2d07f 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -716,7 +716,7 @@ class KOBO(USBMS): # for calibre's reference path = self._main_prefix + path + '.kobo' # print "Path: " + path - elif (ContentType == "6" or ContentType == "10") and (MimeType == 'application/x-kobo-epub+zip' or MimeType == 'application/epub+zip'): + elif (ContentType == "6" or ContentType == "10") and (MimeType == 'application/x-kobo-epub+zip' or (MimeType == 'application/epub+zip' and self.isTolinoDevice())): if path.startswith("file:///mnt/onboard/"): path = self._main_prefix + path.replace("file:///mnt/onboard/", '') else: