Prevent converting of kepub on every new user (#2446)
Added error logging message if convert fails If convert only task, only convert book message is logged
This commit is contained in:
@@ -107,7 +107,7 @@ def generate_auth_token(user_id):
|
||||
|
||||
for book in books:
|
||||
formats = [data.format for data in book.data]
|
||||
if not 'KEPUB' in formats and config.config_kepubifypath and 'EPUB' in formats:
|
||||
if 'KEPUB' not in formats and config.config_kepubifypath and 'EPUB' in formats:
|
||||
helper.convert_book_format(book.id, config.config_calibre_dir, 'EPUB', 'KEPUB', current_user.name)
|
||||
|
||||
return render_title_template(
|
||||
|
||||
Reference in New Issue
Block a user