mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
News download: Always use the .jpg extension for jpeg images as apparently Moon+ cannot handle .jpeg
This commit is contained in:
parent
1afd955ae0
commit
6801696f9e
@ -438,6 +438,9 @@ class RecursiveFetcher(object):
|
||||
identify_data(data)
|
||||
else:
|
||||
identify_data(data)
|
||||
# Moon+ apparently cannot handle .jpeg files
|
||||
if itype == 'jpeg':
|
||||
itype = 'jpg'
|
||||
imgpath = os.path.join(diskpath, fname+'.'+itype)
|
||||
with self.imagemap_lock:
|
||||
self.imagemap[iurl] = imgpath
|
||||
|
Loading…
x
Reference in New Issue
Block a user