mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-30 19:40:03 -07:00
Correct Status report
only logs renamer stared if success:true. fixes #30
This commit is contained in:
parent
93313b19f7
commit
77d3f93ffc
1 changed files with 6 additions and 5 deletions
|
@ -88,11 +88,12 @@ def process(dirName, nzbName=None, status=0):
|
|||
print "Unable to open URL: ", str(e)
|
||||
sys.exit(1)
|
||||
|
||||
result = urlObj.readlines()
|
||||
for line in result:
|
||||
print line
|
||||
|
||||
print command, "started on CouchPotatoServer for", nzbName1
|
||||
result = json.load(urlObj)
|
||||
print "CouchPotatoServer returned", result
|
||||
if result['success']:
|
||||
print command, "started on CouchPotatoServer for", nzbName1
|
||||
else:
|
||||
print "Error", command, "has NOT started on CouchPotatoServer for", nzbName1
|
||||
|
||||
else:
|
||||
print "download of", nzbName1, "has failed."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue