mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 18:47:09 -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)]
|
||||
|
||||
Success = False
|
||||
Queued = False
|
||||
Started = False
|
||||
if section == "SickBeard":
|
||||
for line in r.iter_lines():
|
||||
|
@ -282,8 +283,12 @@ class autoProcessTV(object):
|
|||
logger.postprocess("{0}".format(line), section)
|
||||
if "Moving file from" in line:
|
||||
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:
|
||||
Success = True
|
||||
if Queued:
|
||||
time.sleep(60)
|
||||
elif section == "NzbDrone":
|
||||
try:
|
||||
res = json.loads(r.content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue