Refactor passwords file configuration

This commit is contained in:
Labrys of Knossos 2019-01-19 12:35:14 -05:00
commit e85b92f1db

View file

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