1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-25 12:27:39 +00:00

Added djv file format to djvu reader

This commit is contained in:
Ozzie Isaacs
2023-04-15 15:25:46 +02:00
parent dba83a2900
commit e2785c3985
4 changed files with 5 additions and 5 deletions

View File

@@ -1540,9 +1540,9 @@ def read_book(book_id, book_format):
elif book_format.lower() == "txt":
log.debug("Start txt reader for %d", book_id)
return render_title_template('readtxt.html', txtfile=book_id, title=book.title)
elif book_format.lower() == "djvu":
elif book_format.lower() in ["djvu", "djv"]:
log.debug("Start djvu reader for %d", book_id)
return render_title_template('readdjvu.html', djvufile=book_id, title=book.title)
return render_title_template('readdjvu.html', djvufile=book_id, title=book.title, extension=book_format.lower())
else:
for fileExt in constants.EXTENSIONS_AUDIO:
if book_format.lower() == fileExt: