Fix #568 (encoding problem in fb2 upload)

This commit is contained in:
Ozzie Isaacs
2018-08-04 17:08:32 +02:00
parent 82fe282e9b
commit f81fbaf542
3 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -3096,7 +3096,7 @@ def edit_book(book_id):
if not error:
if to_save["cover_url"]:
if helper.save_cover(to_save["cover_url"], book.path) is true:
if helper.save_cover(to_save["cover_url"], book.path) is True:
book.has_cover = 1
else:
flash(_(u"Cover is not a jpg file, can't save"), category="error")