mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Fix global declarations
This commit is contained in:
parent
2d0b5e706b
commit
819cf7b225
1 changed files with 14 additions and 13 deletions
|
@ -368,6 +368,7 @@ def configure_general():
|
||||||
|
|
||||||
def configure_updates():
|
def configure_updates():
|
||||||
global AUTO_UPDATE
|
global AUTO_UPDATE
|
||||||
|
global MYAPP
|
||||||
|
|
||||||
AUTO_UPDATE = int(CFG['General']['auto_update'])
|
AUTO_UPDATE = int(CFG['General']['auto_update'])
|
||||||
version_checker = version_check.CheckVersion()
|
version_checker = version_check.CheckVersion()
|
||||||
|
@ -624,6 +625,7 @@ def configure_transcoder():
|
||||||
global BURN
|
global BURN
|
||||||
global HWACCEL
|
global HWACCEL
|
||||||
global ALLOWSUBS
|
global ALLOWSUBS
|
||||||
|
global DEFAULTS
|
||||||
|
|
||||||
GETSUBS = int(CFG['Transcoder']['getSubs'])
|
GETSUBS = int(CFG['Transcoder']['getSubs'])
|
||||||
TRANSCODE = int(CFG['Transcoder']['transcode'])
|
TRANSCODE = int(CFG['Transcoder']['transcode'])
|
||||||
|
@ -907,19 +909,18 @@ def configure_transcoder():
|
||||||
|
|
||||||
|
|
||||||
def initialize(section=None):
|
def initialize(section=None):
|
||||||
global NZBGET_POSTPROCESS_ERROR, NZBGET_POSTPROCESS_NONE, NZBGET_POSTPROCESS_PAR_CHECK, NZBGET_POSTPROCESS_SUCCESS, \
|
global SHOWEXTRACT
|
||||||
NZBTOMEDIA_TIMEOUT, FORKS, FORK_DEFAULT, FORK_FAILED_TORRENT, FORK_FAILED, SHOWEXTRACT, \
|
global CATEGORIES
|
||||||
NZBTOMEDIA_BRANCH, NZBTOMEDIA_VERSION, NEWEST_VERSION, NEWEST_VERSION_STRING, SYS_ARGV, \
|
global SECTIONS
|
||||||
SABNZB_NO_OF_ARGUMENTS, SABNZB_0717_NO_OF_ARGUMENTS, CATEGORIES, \
|
global SEVENZIP
|
||||||
SECTIONS, ALL_FORKS, TEST_FILE, SEVENZIP, \
|
global __INITIALIZED__
|
||||||
__INITIALIZED__, APP_FILENAME, USER_DELAY, APP_NAME, DEFAULTS, \
|
global USER_DELAY
|
||||||
SYS_ENCODING, \
|
global SYS_ENCODING
|
||||||
FAILED, \
|
global FFMPEG
|
||||||
FFMPEG, FFPROBE, EXT_CONTAINER, TORRENT_CLASS, \
|
global FFPROBE
|
||||||
PASSWORDS_FILE, USER_DELAY, USER_SCRIPT, USER_SCRIPT_CLEAN, USER_SCRIPT_MEDIAEXTENSIONS, \
|
global TORRENT_CLASS
|
||||||
USER_SCRIPT_PARAM, USER_SCRIPT_RUNONCE, USER_SCRIPT_SUCCESSCODES, DOWNLOAD_INFO, \
|
global PASSWORDS_FILE
|
||||||
PID_FILE, MYAPP, \
|
global PAR2CMD
|
||||||
PAR2CMD
|
|
||||||
|
|
||||||
if __INITIALIZED__:
|
if __INITIALIZED__:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue