From e85b92f1db6d67bb7b9bb2dbd3f885babd3b6e27 Mon Sep 17 00:00:00 2001 From: Labrys of Knossos Date: Sat, 19 Jan 2019 12:35:14 -0500 Subject: [PATCH] Refactor passwords file configuration --- core/__init__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/__init__.py b/core/__init__.py index 82c5def2..4885c763 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -908,6 +908,12 @@ def configure_transcoder(): ACODEC3_ALLOW.extend(extra) +def configure_passwords_file(): + global PASSWORDS_FILE + + PASSWORDS_FILE = CFG['passwords']['PassWordFile'] + + def initialize(section=None): global SHOWEXTRACT global CATEGORIES @@ -948,8 +954,7 @@ def initialize(section=None): configure_niceness() configure_containers() configure_transcoder() - - PASSWORDS_FILE = CFG['passwords']['PassWordFile'] + configure_passwords_file() # Setup FFMPEG, FFPROBE and SEVENZIP locations if platform.system() == 'Windows':