From 856f9e622ea6537ce75d16b04d85796bbc591a34 Mon Sep 17 00:00:00 2001 From: Blondel MONDESIR <16546989+deldesir@users.noreply.github.com> Date: Thu, 29 Jun 2023 16:34:46 -0400 Subject: [PATCH] style: add missing variable --- cps/web.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cps/web.py b/cps/web.py index a6bdc59a..bb56e686 100755 --- a/cps/web.py +++ b/cps/web.py @@ -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,