1
0
mirror of https://github.com/janeczku/calibre-web.git synced 2025-01-22 05:18:56 +02:00

Fix kindle download handling

This commit is contained in:
Ozzie Isaacs 2025-01-06 17:38:25 +01:00
parent 4ccc2c0aec
commit efc7ce31d2

View File

@ -1105,7 +1105,7 @@ def get_download_link(book_id, book_format, client):
file_name = book.title
if len(book.authors) > 0:
file_name = file_name + ' - ' + book.authors[0].name
if client != "kindle":
if client == "kindle":
file_name = get_valid_filename(file_name, replace_whitespace=False, force_unidecode=True)
else:
file_name = quote(get_valid_filename(file_name, replace_whitespace=False))