mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
adbfdc858e
commit
7f65bc11b1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user