Fix for #2990 (Kobo browser not downloading kepub files)

Final fix for cover size during kobo sync (fix for #2523)
This commit is contained in:
Ozzie Isaacs
2024-08-15 19:02:11 +02:00
7 changed files with 20 additions and 8 deletions
+3 -2
View File
@@ -35,7 +35,7 @@ except (ImportError, RuntimeError) as e:
def get_resize_height(resolution):
return int(225 * resolution)
return int(255 * resolution)
def get_resize_width(resolution, original_width, original_height):
@@ -72,7 +72,8 @@ class TaskGenerateCoverThumbnails(CalibreTask):
self.cache = fs.FileSystem()
self.resolutions = [
constants.COVER_THUMBNAIL_SMALL,
constants.COVER_THUMBNAIL_MEDIUM
constants.COVER_THUMBNAIL_MEDIUM,
constants.COVER_THUMBNAIL_LARGE
]
def run(self, worker_thread):