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: -