From 31a14eea7ca910ad7167e467a3be086fb00bfae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 13 Nov 2017 23:23:07 -0500 Subject: [PATCH] Error 500 in episode list --- Dockerfile | 2 +- get_episodes.py | 5 ++++- views/episodes.tpl | 53 ++++++++++++++++++++++++++-------------------- 3 files changed, 35 insertions(+), 25 deletions(-) diff --git a/Dockerfile b/Dockerfile index 221fe2fc9..1af1d4314 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM lsiobase/alpine.python +FROM python:2 EXPOSE 6767 diff --git a/get_episodes.py b/get_episodes.py index bcdcbb006..880679d97 100644 --- a/get_episodes.py +++ b/get_episodes.py @@ -120,4 +120,7 @@ def add_new_episodes(): # Store substitles from episodes we've just added new_scan_subtitles() - list_missing_subtitles() + try: + list_missing_subtitles() + except: + pass diff --git a/views/episodes.tpl b/views/episodes.tpl index 4b391f3e4..c2a56aeb4 100644 --- a/views/episodes.tpl +++ b/views/episodes.tpl @@ -155,36 +155,43 @@ %if episode[4] is not None: % actual_languages = ast.literal_eval(episode[4]) %else: - actual_languages = '[]' + % actual_languages = '[]' %end - %if actual_languages is not None: + + %try: %for language in actual_languages: - %if language[1] is not None: - - {{language[0]}} - - - %else: -