1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-31 15:23:02 +00:00

Bugfixes after testrun

Enabled re-encode of bookformats
This commit is contained in:
Ozzie Isaacs
2022-02-07 13:55:18 +01:00
parent 3bb41aca6d
commit 7c623941de
3 changed files with 167 additions and 107 deletions

View File

@@ -670,7 +670,7 @@ def upload_single_file(request, book, book_id):
# Queue uploader info
link = '<a href="{}">{}</a>'.format(url_for('web.show_book', book_id=book.id), escape(book.title))
uploadText=_(u"File format %(ext)s added to %(book)s", ext=file_ext.upper(), book=link)
WorkerThread.add(current_user.name, TaskUpload(uploadText), escape(book.title))
WorkerThread.add(current_user.name, TaskUpload(uploadText, escape(book.title)))
return uploader.process(
saved_filename, *os.path.splitext(requested_file.filename),