mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Refactor passwords file configuration
This commit is contained in:
parent
819cf7b225
commit
e85b92f1db
1 changed files with 7 additions and 2 deletions
|
@ -908,6 +908,12 @@ def configure_transcoder():
|
||||||
ACODEC3_ALLOW.extend(extra)
|
ACODEC3_ALLOW.extend(extra)
|
||||||
|
|
||||||
|
|
||||||
|
def configure_passwords_file():
|
||||||
|
global PASSWORDS_FILE
|
||||||
|
|
||||||
|
PASSWORDS_FILE = CFG['passwords']['PassWordFile']
|
||||||
|
|
||||||
|
|
||||||
def initialize(section=None):
|
def initialize(section=None):
|
||||||
global SHOWEXTRACT
|
global SHOWEXTRACT
|
||||||
global CATEGORIES
|
global CATEGORIES
|
||||||
|
@ -948,8 +954,7 @@ def initialize(section=None):
|
||||||
configure_niceness()
|
configure_niceness()
|
||||||
configure_containers()
|
configure_containers()
|
||||||
configure_transcoder()
|
configure_transcoder()
|
||||||
|
configure_passwords_file()
|
||||||
PASSWORDS_FILE = CFG['passwords']['PassWordFile']
|
|
||||||
|
|
||||||
# Setup FFMPEG, FFPROBE and SEVENZIP locations
|
# Setup FFMPEG, FFPROBE and SEVENZIP locations
|
||||||
if platform.system() == 'Windows':
|
if platform.system() == 'Windows':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue