mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Small fix for sys.encoding globals
This commit is contained in:
parent
b8b2f4923f
commit
ba5e1ec03c
2 changed files with 2 additions and 3 deletions
|
@ -107,7 +107,7 @@ def initialize():
|
|||
TRANSMISSIONPWD, TRANSMISSIONUSR, COMPRESSEDCONTAINER, MEDIACONTAINER, METACONTAINER, MINSAMPLESIZE, SAMPLEIDS, \
|
||||
SECTIONS, SUBSECTIONS, USER_SCRIPT_CATEGORIES, __INITIALIZED__, AUTO_UPDATE, APP_FILENAME, USER_DELAY, USER_SCRIPT_RUNONCE,\
|
||||
APP_NAME,USER_SCRIPT_MEDIAEXTENSIONS, USER_SCRIPT, USER_SCRIPT_PARAM, USER_SCRIPT_SUCCESSCODES, USER_SCRIPT_CLEAN,\
|
||||
TRANSCODE, GIT_PATH, GIT_USER, GIT_BRANCH, GIT_REPO
|
||||
TRANSCODE, GIT_PATH, GIT_USER, GIT_BRANCH, GIT_REPO, SYS_ENCODING
|
||||
|
||||
|
||||
if __INITIALIZED__:
|
||||
|
@ -117,7 +117,6 @@ def initialize():
|
|||
sys.path.insert(0, os.path.abspath(os.path.join(PROGRAM_DIR, 'lib')))
|
||||
|
||||
# init preliminaries
|
||||
SYS_ENCODING = None
|
||||
SYS_ARGV = sys.argv[1:]
|
||||
APP_FILENAME = sys.argv[0]
|
||||
APP_NAME = os.path.basename(APP_FILENAME)
|
||||
|
|
|
@ -48,7 +48,7 @@ def autoFork(inputCategory):
|
|||
detected = False
|
||||
if fork == "auto":
|
||||
logger.info("Attempting to auto-detect " + section + " fork")
|
||||
for fork in sorted(nzbtomedia.FORKS.iteritems()):
|
||||
for fork in sorted(nzbtomedia.FORKS.iteritems(), reverse=False):
|
||||
url = protocol + host + ":" + port + web_root + "/home/postprocess/processEpisode?" + urllib.urlencode(fork[1])
|
||||
|
||||
# attempting to auto-detect fork
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue