Books from the Tolino Cloud are EPUBs (not KEPUBs).

Add MimeType 'application/epub+zip' so that these books are also being listed.
This commit is contained in:
Martin Brodbeck 2024-08-11 15:55:36 +02:00
parent 1c5c36b1d7
commit 2ac0d0fcf0

View File

@ -716,7 +716,7 @@ class KOBO(USBMS):
# for calibre's reference # for calibre's reference
path = self._main_prefix + path + '.kobo' path = self._main_prefix + path + '.kobo'
# print "Path: " + path # 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/"): if path.startswith("file:///mnt/onboard/"):
path = self._main_prefix + path.replace("file:///mnt/onboard/", '') path = self._main_prefix + path.replace("file:///mnt/onboard/", '')
else: else: