1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-30 06:43:03 +00:00

Fix for #2961 (empty comment with newline causes error 500 on upload)

Language of error message for kobo sync improved
This commit is contained in:
Ozzie Isaacs
2023-12-31 19:48:47 +01:00
parent 00acd745f4
commit 977f07364b
3 changed files with 12 additions and 6 deletions

View File

@@ -102,7 +102,7 @@ def get_epub_info(tmp_file_path, original_file_name, original_file_extension):
elif s == 'date':
epub_metadata[s] = tmp[0][:10]
else:
epub_metadata[s] = tmp[0]
epub_metadata[s] = tmp[0].strip()
else:
epub_metadata[s] = 'Unknown'