mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
ec77b13303
commit
d76bf7a13d
@ -2075,14 +2075,14 @@ class KOBOTOUCH(KOBO):
|
|||||||
def path_from_contentid(self, ContentID, ContentType, MimeType, oncard, externalId=None):
|
def path_from_contentid(self, ContentID, ContentType, MimeType, oncard, externalId=None):
|
||||||
path = ContentID
|
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)
|
return super().path_from_contentid(ContentID, ContentType, MimeType, oncard)
|
||||||
|
|
||||||
if oncard == 'cardb':
|
if oncard == 'cardb':
|
||||||
print('path from_contentid cardb')
|
print('path from_contentid cardb')
|
||||||
else:
|
else:
|
||||||
if (ContentType == "6" or ContentType == "10"):
|
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
|
path = self._main_prefix + '.kobo/audiobook/' + path
|
||||||
elif path.startswith("file:///mnt/onboard/"):
|
elif path.startswith("file:///mnt/onboard/"):
|
||||||
path = self._main_prefix + path.replace("file:///mnt/onboard/", '')
|
path = self._main_prefix + path.replace("file:///mnt/onboard/", '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user