mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
added delay when SickRage queues PP. Temp fix #1158
This commit is contained in:
parent
454db6fe6a
commit
f6bf26c91c
1 changed files with 5 additions and 0 deletions
|
@ -275,6 +275,7 @@ class autoProcessTV(object):
|
||||||
return [1, "{0}: Failed to post-process - Server returned status {1}".format(section, r.status_code)]
|
return [1, "{0}: Failed to post-process - Server returned status {1}".format(section, r.status_code)]
|
||||||
|
|
||||||
Success = False
|
Success = False
|
||||||
|
Queued = False
|
||||||
Started = False
|
Started = False
|
||||||
if section == "SickBeard":
|
if section == "SickBeard":
|
||||||
for line in r.iter_lines():
|
for line in r.iter_lines():
|
||||||
|
@ -282,8 +283,12 @@ class autoProcessTV(object):
|
||||||
logger.postprocess("{0}".format(line), section)
|
logger.postprocess("{0}".format(line), section)
|
||||||
if "Moving file from" in line:
|
if "Moving file from" in line:
|
||||||
inputName = os.path.split(line)[1]
|
inputName = os.path.split(line)[1]
|
||||||
|
if "added to the queue" in line:
|
||||||
|
Queued = True
|
||||||
if "Processing succeeded" in line or "Successfully processed" in line:
|
if "Processing succeeded" in line or "Successfully processed" in line:
|
||||||
Success = True
|
Success = True
|
||||||
|
if Queued:
|
||||||
|
time.sleep(60)
|
||||||
elif section == "NzbDrone":
|
elif section == "NzbDrone":
|
||||||
try:
|
try:
|
||||||
res = json.loads(r.content)
|
res = json.loads(r.content)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue