From 6c72da41dabd13cb0e7332a1761e4d0f12b66422 Mon Sep 17 00:00:00 2001 From: Halali Date: Sat, 15 Dec 2018 01:53:24 +0100 Subject: [PATCH] Fix template --- views/episodes.tpl | 5 +++-- views/movie.tpl | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/views/episodes.tpl b/views/episodes.tpl index 8e5e2fe36..8d0dd237f 100644 --- a/views/episodes.tpl +++ b/views/episodes.tpl @@ -89,7 +89,9 @@ %import ast %from get_languages import * - %single_language = get_general_settings()[7] + %from config import settings + %from helper import path_replace + %single_language = settings.general.single_language
Loading...
@@ -219,7 +221,6 @@ end if missing_languages is not None: from get_subtitle import search_active - from config import settings for language in missing_languages: if episode[10] is not None and settings.general.adaptive_searching and language in episode[10]: for lang in ast.literal_eval(episode[10]): diff --git a/views/movie.tpl b/views/movie.tpl index 3cc505913..ef6761236 100644 --- a/views/movie.tpl +++ b/views/movie.tpl @@ -81,6 +81,7 @@ %import ast %from get_languages import * %from config import settings + %from helper import path_replace_movie %single_language = settings.general.single_language