Fix for last py3 merge

This commit is contained in:
Kovid Goyal 2019-09-10 20:51:42 +05:30
parent b841f804d0
commit cdc26fa38e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -372,8 +372,8 @@ class CatalogBuilder(object):
self.thumb_height = self.thumb_width * 1.33 self.thumb_height = self.thumb_width * 1.33
if 'kindle' in x.short_name and self.opts.fmt == 'mobi': if 'kindle' in x.short_name and self.opts.fmt == 'mobi':
# Kindle DPI appears to be off by a factor of 2 # Kindle DPI appears to be off by a factor of 2
self.thumb_width = self.thumb_width / 2 self.thumb_width = self.thumb_width // 2
self.thumb_height = self.thumb_height / 2 self.thumb_height = self.thumb_height // 2
break break
if self.opts.verbose: if self.opts.verbose:
self.opts.log(" Thumbnails:") self.opts.log(" Thumbnails:")