mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:25:41 +02:00
KTouch - Why oh why does the content id keep changing format?
This commit is contained in:
parent
cb66ec304d
commit
515bc88d59
1 changed files with 4 additions and 1 deletions
|
|
@ -457,7 +457,10 @@ def path_from_contentid(self, ContentID, ContentType, MimeType, oncard):
|
|||
path = self._main_prefix + path + '.kobo'
|
||||
# print "Path: " + path
|
||||
elif (ContentType == "6" or ContentType == "10") and MimeType == 'application/x-kobo-epub+zip':
|
||||
path = self._main_prefix + '.kobo/kepub/' + path
|
||||
if path.startswith("file:///mnt/onboard/"):
|
||||
path = self._main_prefix + path.replace("file:///mnt/onboard/", '')
|
||||
else:
|
||||
path = self._main_prefix + '.kobo/kepub/' + path
|
||||
# print "Internal: " + path
|
||||
else:
|
||||
# if path.startswith("file:///mnt/onboard/"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue