This commit is contained in:
Kovid Goyal 2021-12-01 18:21:56 +05:30
parent ec77b13303
commit d76bf7a13d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2082,7 +2082,7 @@ class KOBOTOUCH(KOBO):
print('path from_contentid cardb')
else:
if (ContentType == "6" or ContentType == "10"):
if (MimeType == 'application/octet-stream'): # Audiobooks purchased from Kobo are in a different location.
if (MimeType == 'application/octet-stream'): # Audiobooks purchased from Kobo are in a different location.
path = self._main_prefix + '.kobo/audiobook/' + path
elif path.startswith("file:///mnt/onboard/"):
path = self._main_prefix + path.replace("file:///mnt/onboard/", '')