mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1579 (Problem retrieveing image file as cover)
This commit is contained in:
parent
0c1924bb93
commit
4ee2807551
@ -765,6 +765,8 @@ class BasicNewsRecipe(object, LoggingInterface):
|
||||
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…
x
Reference in New Issue
Block a user