mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix cover file size determination in KoboTouch driver
Fix a couple of typos related to getting the sizes of the covers for Kobo devices. It meant that everything got the size for the Glo. The other was the dimensions of the full size cover for the Aura ONE were swapped.
This commit is contained in:
parent
1782fbae51
commit
2e466f735e
@ -1409,7 +1409,7 @@ class KOBOTOUCH(KOBO):
|
|||||||
}
|
}
|
||||||
AURA_ONE_COVER_FILE_ENDINGS = {
|
AURA_ONE_COVER_FILE_ENDINGS = {
|
||||||
# Used for screensaver, home screen
|
# Used for screensaver, home screen
|
||||||
' - N3_FULL.parsed': [(1872,1404), 0, 200,True,], # Used for screensaver, home screen
|
' - N3_FULL.parsed': [(1404,1872), 0, 200,True,], # Used for screensaver, home screen
|
||||||
# Used for Details screen before FW2.8.1, then for current book tile on home screen
|
# Used for Details screen before FW2.8.1, then for current book tile on home screen
|
||||||
' - N3_LIBRARY_FULL.parsed':[(355, 473), 0, 200,False,],
|
' - N3_LIBRARY_FULL.parsed':[(355, 473), 0, 200,False,],
|
||||||
# Used for library lists
|
# Used for library lists
|
||||||
@ -2914,7 +2914,7 @@ class KOBOTOUCH(KOBO):
|
|||||||
return self.detected_device.idProduct in self.TOUCH2_PRODUCT_ID
|
return self.detected_device.idProduct in self.TOUCH2_PRODUCT_ID
|
||||||
|
|
||||||
def cover_file_endings(self):
|
def cover_file_endings(self):
|
||||||
return self.GLO_COVER_FILE_ENDINGS if self.isGlo() or self.isAura() or self.isAuraEdition2 \
|
return self.GLO_COVER_FILE_ENDINGS if self.isGlo() or self.isAura() or self.isAuraEdition2() \
|
||||||
else self.AURA_HD_COVER_FILE_ENDINGS if self.isAuraHD() or self.isAuraH2O() or self.isGloHD() \
|
else self.AURA_HD_COVER_FILE_ENDINGS if self.isAuraHD() or self.isAuraH2O() or self.isGloHD() \
|
||||||
else self.AURA_ONE_COVER_FILE_ENDINGS if self.isAuraOne() \
|
else self.AURA_ONE_COVER_FILE_ENDINGS if self.isAuraOne() \
|
||||||
else self.COVER_FILE_ENDINGS
|
else self.COVER_FILE_ENDINGS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user