mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Added in allowed release status 'done'
This commit is contained in:
parent
c2855973ce
commit
de20ddd9b2
1 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ class autoProcessMovie:
|
||||||
continue
|
continue
|
||||||
releases = movie['releases']
|
releases = movie['releases']
|
||||||
for release in releases:
|
for release in releases:
|
||||||
if release['status'] not in ['snatched']:
|
if release['status'] not in ['snatched','done']:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
if download_id:
|
if download_id:
|
||||||
|
@ -150,7 +150,7 @@ class autoProcessMovie:
|
||||||
|
|
||||||
logger.debug("Opening URL: %s" % (url), section)
|
logger.debug("Opening URL: %s" % (url), section)
|
||||||
|
|
||||||
logger.postprocess("Attempting to perform a %s scan for %s" % (method, nzbName), section)
|
logger.postprocess("Starting %s scan for %s" % (method, nzbName), section)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
r = requests.get(url, params=params)
|
r = requests.get(url, params=params)
|
||||||
|
@ -160,9 +160,9 @@ class autoProcessMovie:
|
||||||
|
|
||||||
result = r.json()
|
result = r.json()
|
||||||
if result['success']:
|
if result['success']:
|
||||||
logger.postprocess("SUCCESS: Started %s scan on folder %s, please wait ..." % (method, dirName), section)
|
logger.postprocess("SUCCESS: Finished %s scan for folder %s" % (method, dirName), section)
|
||||||
else:
|
else:
|
||||||
logger.error("FAILED: %s scan was unable to start for folder %s. exiting!" % (method, dirName), section)
|
logger.error("FAILED: %s scan was unable to finish for folder %s. exiting!" % (method, dirName), section)
|
||||||
return 1 # failure
|
return 1 # failure
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue