mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -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:
|
||||
logger.info("The %s script completed successfully." % args[0])
|
||||
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
|
||||
del nzbtomedia.MYAPP
|
||||
return (nzbtomedia.NZBGET_POSTPROCESS_SUCCESS)
|
||||
else:
|
||||
logger.error("A problem was reported in the %s script." % args[0])
|
||||
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
|
||||
del nzbtomedia.MYAPP
|
||||
return (nzbtomedia.NZBGET_POSTPROCESS_ERROR)
|
||||
|
|
|
@ -202,11 +202,11 @@ def initialize(section=None):
|
|||
return False
|
||||
|
||||
if not makeDir(LOG_DIR):
|
||||
print("No log folder, logging to screen only!")
|
||||
print("No log folder, logging to screen only")
|
||||
|
||||
MYAPP = RunningProcess()
|
||||
while MYAPP.alreadyrunning():
|
||||
print("Waiting for existing session to end!")
|
||||
print("Waiting for existing session to end")
|
||||
time.sleep(30)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue