Skip to content

Commit

Permalink
Fix kindle download handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Ozzie Isaacs committed Jan 6, 2025
1 parent 4ccc2c0 commit efc7ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cps/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit efc7ce3

Please sign in to comment.