mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -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)
|
identify_data(data)
|
||||||
else:
|
else:
|
||||||
identify_data(data)
|
identify_data(data)
|
||||||
|
# Moon+ apparently cannot handle .jpeg files
|
||||||
|
if itype == 'jpeg':
|
||||||
|
itype = 'jpg'
|
||||||
imgpath = os.path.join(diskpath, fname+'.'+itype)
|
imgpath = os.path.join(diskpath, fname+'.'+itype)
|
||||||
with self.imagemap_lock:
|
with self.imagemap_lock:
|
||||||
self.imagemap[iurl] = imgpath
|
self.imagemap[iurl] = imgpath
|
||||||
|
Loading…
x
Reference in New Issue
Block a user