mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
This commit is contained in:
parent
0d3060ddf2
commit
8188455e13
1 changed files with 9 additions and 2 deletions
|
@ -147,11 +147,18 @@ class autoProcessTV:
|
|||
logger.error("Unable to open URL: %s" % (url), section)
|
||||
return 1 # failure
|
||||
|
||||
Success = False
|
||||
for line in r.iter_lines():
|
||||
if line: logger.postprocess("%s" % (line), section)
|
||||
if line:
|
||||
logger.postprocess("%s" % (line), section)
|
||||
if "Processing succeeded for" in line: # We set Success based on the last non-empty line in the output.
|
||||
Success = True
|
||||
|
||||
if status != 0 and delete_failed and not os.path.dirname(dirName) == dirName:
|
||||
logger.postprocess("Deleting failed files and folder %s" % (dirName),section)
|
||||
rmDir(dirName)
|
||||
|
||||
return 0 # Success
|
||||
if Success:
|
||||
return 0
|
||||
else:
|
||||
return 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue