mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
parent
de89fb2ce0
commit
94110f3298
2 changed files with 4 additions and 4 deletions
|
@ -737,14 +737,14 @@ def main(args, section=None):
|
||||||
if result[0] == 0:
|
if result[0] == 0:
|
||||||
logger.info("The %s script completed successfully." % args[0])
|
logger.info("The %s script completed successfully." % args[0])
|
||||||
if result[1]:
|
if result[1]:
|
||||||
print result[1] # For SABnzbd Status display.
|
print result[1] + "!" # For SABnzbd Status display.
|
||||||
if os.environ.has_key('NZBOP_SCRIPTDIR'): # return code for nzbget v11
|
if os.environ.has_key('NZBOP_SCRIPTDIR'): # return code for nzbget v11
|
||||||
del nzbtomedia.MYAPP
|
del nzbtomedia.MYAPP
|
||||||
return (nzbtomedia.NZBGET_POSTPROCESS_SUCCESS)
|
return (nzbtomedia.NZBGET_POSTPROCESS_SUCCESS)
|
||||||
else:
|
else:
|
||||||
logger.error("A problem was reported in the %s script." % args[0])
|
logger.error("A problem was reported in the %s script." % args[0])
|
||||||
if result[1]:
|
if result[1]:
|
||||||
print result[1] # For SABnzbd Status display.
|
print result[1] + "!" # For SABnzbd Status display.
|
||||||
if os.environ.has_key('NZBOP_SCRIPTDIR'): # return code for nzbget v11
|
if os.environ.has_key('NZBOP_SCRIPTDIR'): # return code for nzbget v11
|
||||||
del nzbtomedia.MYAPP
|
del nzbtomedia.MYAPP
|
||||||
return (nzbtomedia.NZBGET_POSTPROCESS_ERROR)
|
return (nzbtomedia.NZBGET_POSTPROCESS_ERROR)
|
||||||
|
|
|
@ -202,11 +202,11 @@ def initialize(section=None):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if not makeDir(LOG_DIR):
|
if not makeDir(LOG_DIR):
|
||||||
print("No log folder, logging to screen only!")
|
print("No log folder, logging to screen only")
|
||||||
|
|
||||||
MYAPP = RunningProcess()
|
MYAPP = RunningProcess()
|
||||||
while MYAPP.alreadyrunning():
|
while MYAPP.alreadyrunning():
|
||||||
print("Waiting for existing session to end!")
|
print("Waiting for existing session to end")
|
||||||
time.sleep(30)
|
time.sleep(30)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue