1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-28 12:30:00 +00:00
This commit is contained in:
OzzieIsaacs 2018-09-06 20:54:48 +02:00
parent 0bcb20f674
commit b48de7dc77

View File

@ -75,9 +75,10 @@ def convert_book_format(book_id, calibrepath, old_book_format, new_book_format,
settings = ub.get_mail_settings() settings = ub.get_mail_settings()
text = _(u"Convert: %s" % book.title) text = _(u"Convert: %s" % book.title)
else: else:
settings = dict()
text = _(u"Convert to %(format)s: %(book)s", format=new_book_format, book=book.title) text = _(u"Convert to %(format)s: %(book)s", format=new_book_format, book=book.title)
settings['old_book_format'] = u'EPUB' settings['old_book_format'] = old_book_format
settings['new_book_format'] = u'MOBI' settings['new_book_format'] = new_book_format
global_WorkerThread.add_convert(file_path, book.id, user_id, text, settings, kindle_mail) global_WorkerThread.add_convert(file_path, book.id, user_id, text, settings, kindle_mail)
return None return None
else: else: