mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Adapted to new ImageID names
For a pointless reason, Tolinos with firmware 5.6.209315 (dbversion 191) create a different BookID (ImageID).
This commit is contained in:
parent
48f9ff3def
commit
697a061da3
@ -2852,7 +2852,12 @@ class KOBOTOUCH(KOBO):
|
||||
ImageID = ContentID.replace('/', '_')
|
||||
ImageID = ImageID.replace(' ', '_')
|
||||
ImageID = ImageID.replace(':', '_')
|
||||
ImageID = ImageID.replace('.', '_')
|
||||
if self.isTolinoDevice() and self.dbversion >= 191:
|
||||
ImageID_split = ImageID.rsplit('.', 1)
|
||||
ImageID_split[0] = ImageID_split[0].replace('.', '_')
|
||||
ImageId = '.'.join(ImageID_split)
|
||||
else:
|
||||
ImageID = ImageID.replace('.', '_')
|
||||
return ImageID
|
||||
|
||||
def images_path(self, path, imageId=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user