Use djvu_html5 to read djvu format in browser

This commit is contained in:
verglor
2020-11-15 13:19:37 +01:00
parent 09a5a69f86
commit 2343c79126
4 changed files with 8 additions and 5 deletions
+3
View File
@@ -1843,6 +1843,9 @@ def read_book(book_id, book_format):
elif book_format.lower() == "txt":
log.debug(u"Start txt reader for %d", book_id)
return render_title_template('readtxt.html', txtfile=book_id, title=_(u"Read a Book"))
elif book_format.lower() == "djvu":
log.debug(u"Start djvu reader for %d", book_id)
return render_title_template('readdjvu.html', djvufile=book_id, title=_(u"Read a Book"))
else:
for fileExt in constants.EXTENSIONS_AUDIO:
if book_format.lower() == fileExt: