News download: Always use the .jpg extension for jpeg images as apparently Moon+ cannot handle .jpeg

This commit is contained in:
Kovid Goyal 2013-03-26 10:12:58 +05:30
parent 1afd955ae0
commit 6801696f9e

View File

@ -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