Distinguish between shine and vision in terms of cover size.

This commit is contained in:
Martin Brodbeck 2024-07-19 15:31:01 +02:00
parent 5974229cae
commit c9e0c2e658

View File

@ -1565,11 +1565,16 @@ class KOBOTOUCH(KOBO):
# Used for screensaver, home screen # Used for screensaver, home screen
' - N3_FULL.parsed': [(1264,1680), 0, 200,True,], ' - N3_FULL.parsed': [(1264,1680), 0, 200,True,],
} }
TOLINO_COVER_FILE_ENDINGS = { TOLINO_SHINE_COVER_FILE_ENDINGS = {
# Used for ??? # Used for ???
# There's probably only one ending used # There's probably only one ending used
'': [(1072,1448), 0, 200,True,], '': [(1072,1448), 0, 200,True,],
} }
TOLINO_VISION_COVER_FILE_ENDINGS = {
# Used for ???
# There's probably only one ending used
'': [(1264,1680), 0, 200,True,],
}
# Following are the sizes used with pre2.1.4 firmware # Following are the sizes used with pre2.1.4 firmware
# COVER_FILE_ENDINGS = { # COVER_FILE_ENDINGS = {
# ' - N3_LIBRARY_FULL.parsed':[(355,530),0, 99,], # Used for Details screen # ' - N3_LIBRARY_FULL.parsed':[(355,530),0, 99,], # Used for Details screen
@ -3710,15 +3715,15 @@ class KOBOTOUCH(KOBO):
elif self.isSage(): elif self.isSage():
_cover_file_endings = self.FORMA_COVER_FILE_ENDINGS _cover_file_endings = self.FORMA_COVER_FILE_ENDINGS
elif self.isShine5(): elif self.isShine5():
_cover_file_endings = self.TOLINO_COVER_FILE_ENDINGS _cover_file_endings = self.TOLINO_SHINE_COVER_FILE_ENDINGS
elif self.isShineColor(): elif self.isShineColor():
_cover_file_endings = self.TOLINO_COVER_FILE_ENDINGS _cover_file_endings = self.TOLINO_SHINE_COVER_FILE_ENDINGS
elif self.isTouch(): elif self.isTouch():
_cover_file_endings = self.LEGACY_COVER_FILE_ENDINGS _cover_file_endings = self.LEGACY_COVER_FILE_ENDINGS
elif self.isTouch2(): elif self.isTouch2():
_cover_file_endings = self.LEGACY_COVER_FILE_ENDINGS _cover_file_endings = self.LEGACY_COVER_FILE_ENDINGS
elif self.isVisionColor(): elif self.isVisionColor():
_cover_file_endings = self.TOLINO_COVER_FILE_ENDINGS _cover_file_endings = self.TOLINO_VISION_COVER_FILE_ENDINGS
else: else:
_cover_file_endings = self.LEGACY_COVER_FILE_ENDINGS _cover_file_endings = self.LEGACY_COVER_FILE_ENDINGS