From 6801696f9e833679ce0b9f1982852b183e702599 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 26 Mar 2013 10:12:58 +0530 Subject: [PATCH] News download: Always use the .jpg extension for jpeg images as apparently Moon+ cannot handle .jpeg --- src/calibre/web/fetch/simple.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/web/fetch/simple.py b/src/calibre/web/fetch/simple.py index 95b8cf0253..b81e62c17a 100644 --- a/src/calibre/web/fetch/simple.py +++ b/src/calibre/web/fetch/simple.py @@ -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