From 7f65bc11b11d5e28df5195852c8f87996ae78c7a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 4 Jun 2017 20:05:34 +0530 Subject: [PATCH] ... --- src/calibre/srv/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/srv/content.py b/src/calibre/srv/content.py index 1432cc9611..bedcb129e6 100644 --- a/src/calibre/srv/content.py +++ b/src/calibre/srv/content.py @@ -159,7 +159,7 @@ def cover(ctx, rd, library_id, db, book_id, width=None, height=None): def book_filename(rd, book_id, mi, fmt): au = authors_to_string(mi.authors or [_('Unknown')]) title = mi.title or _('Unknown') - ext = fmt + ext = fmt.lower() if ext == 'kepub' and 'Kobo Touch' in rd.inheaders.get('User-Agent', ''): ext = 'kepub.epub' fname = '%s - %s_%s.%s' % (title[:30], au[:30], book_id, ext)