mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Fixed autoProcessMovie to check for movie status = ignored for imdbID only movies.
This commit is contained in:
parent
dc536448b1
commit
b2eb32d197
1 changed files with 2 additions and 2 deletions
|
@ -279,13 +279,13 @@ class autoProcessMovie:
|
|||
timeout = time.time() + 60 * int(wait_for)
|
||||
while (time.time() < timeout): # only wait 2 (default) minutes, then return.
|
||||
try:
|
||||
r = requests.get(url, params={id:imdbid})
|
||||
r = requests.get(url, params={'id':imdbid})
|
||||
except requests.ConnectionError:
|
||||
logger.error("Unable to open URL")
|
||||
return 1 # failure
|
||||
|
||||
result = r.json()
|
||||
if result['success']:
|
||||
if result['media']['status'] == 'ignored':
|
||||
logger.postprocess("CouchPotato successfully added %s to it's database ...", nzbName)
|
||||
return 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue