1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-29 22:33:01 +00:00

Fixes for Kobo sync

Better output on upload cover
Fix for download after access to opds/fileformat
Fix osd search link
Added ratings to opds feed
Change for kobo sync for testing
This commit is contained in:
Ozzieisaacs
2020-03-07 11:07:35 +01:00
parent fb83bfb363
commit d267338837
7 changed files with 88 additions and 60 deletions

View File

@@ -369,11 +369,11 @@ def upload_cover(request, book):
requested_file = request.files['btn-upload-cover']
# check for empty request
if requested_file.filename != '':
if helper.save_cover(requested_file, book.path) is True:
ret, message = helper.save_cover(requested_file, book.path)
if ret is True:
return True
else:
# ToDo Message not always coorect
flash(_(u"Cover is not a supported imageformat (jpg/png/webp), can't save"), category="error")
flash(message, category="error")
return False
return None