1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-24 17:10:31 +00:00

style: add missing variable

This commit is contained in:
Blondel MONDESIR 2023-06-29 16:34:46 -04:00 committed by GitHub
parent ad26cefce9
commit 856f9e622e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,