mirror of
https://github.com/janeczku/calibre-web
synced 2025-08-08 15:08:26 +00:00
Fix kindle download handling
This commit is contained in:
parent
4ccc2c0aec
commit
efc7ce31d2
@ -1105,7 +1105,7 @@ def get_download_link(book_id, book_format, client):
|
|||||||
file_name = book.title
|
file_name = book.title
|
||||||
if len(book.authors) > 0:
|
if len(book.authors) > 0:
|
||||||
file_name = file_name + ' - ' + book.authors[0].name
|
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)
|
file_name = get_valid_filename(file_name, replace_whitespace=False, force_unidecode=True)
|
||||||
else:
|
else:
|
||||||
file_name = quote(get_valid_filename(file_name, replace_whitespace=False))
|
file_name = quote(get_valid_filename(file_name, replace_whitespace=False))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user