From d76bf7a13d648a76f7d2e0a3067b581b4f643856 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 1 Dec 2021 18:21:56 +0530 Subject: [PATCH] pep8 --- src/calibre/devices/kobo/driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 2a9f0cd336..a92e7bf697 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -2075,14 +2075,14 @@ class KOBOTOUCH(KOBO): def path_from_contentid(self, ContentID, ContentType, MimeType, oncard, externalId=None): path = ContentID - if not (externalId or MimeType == 'application/octet-stream'): + if not (externalId or MimeType == 'application/octet-stream'): return super().path_from_contentid(ContentID, ContentType, MimeType, oncard) if oncard == 'cardb': 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/", '')