1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-12-06 08:18:05 +00:00

Ensure file paths in uploads are non-empty, fix #183 (#184)

* Ensure file paths in uploads are non-empty, fix #183

* Fix AttributeError in process(), handle strings of spaces
This commit is contained in:
Matt Hazinski
2017-04-23 02:22:10 -04:00
committed by Ozzie Isaacs
parent ede8ae6742
commit 6f7a240ce2
3 changed files with 16 additions and 8 deletions

View File

@@ -89,7 +89,7 @@ def get_epub_info(tmp_file_path, original_file_name, original_file_extension):
else:
coverfile = extractCover(epubZip, coversection[0], coverpath, tmp_file_path)
if epub_metadata['title'] is None:
if not epub_metadata['title']:
title = original_file_name
else:
title = epub_metadata['title']