mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:13:04 +02:00
Fix #1579 (Problem retrieveing image file as cover)
This commit is contained in:
parent
0c1924bb93
commit
4ee2807551
1 changed files with 2 additions and 0 deletions
|
|
@ -765,6 +765,8 @@ def download_cover(self):
|
|||
self.log_debug(traceback.format_exc())
|
||||
if cu is not None:
|
||||
ext = cu.rpartition('.')[-1]
|
||||
if '?' in ext:
|
||||
ext = ''
|
||||
ext = ext.lower() if ext else 'jpg'
|
||||
self.report_progress(1, _('Downloading cover from %s')%cu)
|
||||
cpath = os.path.join(self.output_dir, 'cover.'+ext)
|
||||
|
|
|
|||
Loading…
Reference in a new issue