From efc7ce31d232d8d094ce390ece5c50c56d466009 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Mon, 6 Jan 2025 17:38:25 +0100 Subject: [PATCH] Fix kindle download handling --- cps/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/helper.py b/cps/helper.py index 07200834..4d4fdeb4 100644 --- a/cps/helper.py +++ b/cps/helper.py @@ -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))