From 2ac0d0fcf0a164c6e72bc3cd8e957310385fc2b6 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Sun, 11 Aug 2024 15:55:36 +0200 Subject: [PATCH] Books from the Tolino Cloud are EPUBs (not KEPUBs). Add MimeType 'application/epub+zip' so that these books are also being listed. --- 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 4e2282eed2..a1e43adda3 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': + elif (ContentType == "6" or ContentType == "10") and (MimeType == 'application/x-kobo-epub+zip' or MimeType == 'application/epub+zip'): if path.startswith("file:///mnt/onboard/"): path = self._main_prefix + path.replace("file:///mnt/onboard/", '') else: