mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-16 06:44:54 +00:00
style: add missing variable
This commit is contained in:
parent
ad26cefce9
commit
856f9e622e
@ -1600,9 +1600,12 @@ def show_book(book_id):
|
||||
entry.reader_list = check_read_formats(entry)
|
||||
|
||||
entry.audio_entries = []
|
||||
entry.video_entries = []
|
||||
for media_format in entry.data:
|
||||
if media_format.format.lower() in constants.EXTENSIONS_AUDIO:
|
||||
entry.audio_entries.append(media_format.format.lower())
|
||||
if media_format.format.lower() in constants.EXTENSIONS_VIDEO:
|
||||
entry.video_entries.append(media_format.format.lower())
|
||||
|
||||
return render_title_template('detail.html',
|
||||
entry=entry,
|
||||
|
Loading…
Reference in New Issue
Block a user