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:
Martin Brodbeck 2025-03-05 19:52:33 +01:00
parent 48f9ff3def
commit 697a061da3

View File

@ -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):