1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-26 21:07:40 +00:00

Merge branch 'master' into cover_thumbnail

This commit is contained in:
Ozzie Isaacs
2022-04-13 18:37:44 +02:00
11 changed files with 42 additions and 33 deletions

View File

@@ -811,7 +811,7 @@ def edit_book(book_id):
if to_save["cover_url"].endswith('/static/generic_cover.jpg'):
book.has_cover = 0
else:
result, error = helper.save_cover_from_url(to_save["cover_url"], book.path)
result, error = helper.save_cover_from_url(to_save["cover_url"].strip(), book.path)
if result is True:
book.has_cover = 1
modify_date = True