mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
Gracefully exits if unable to locate movie in wanted list
This commit is contained in:
parent
e24dcade19
commit
65b4562d11
1 changed files with 7 additions and 0 deletions
|
@ -32,6 +32,9 @@ class autoProcessMovie:
|
||||||
return
|
return
|
||||||
|
|
||||||
result = r.json()
|
result = r.json()
|
||||||
|
if not result['success']:
|
||||||
|
logger.error(str(result['error']))
|
||||||
|
return results
|
||||||
|
|
||||||
# Gather release info and return it back, no need to narrow results
|
# Gather release info and return it back, no need to narrow results
|
||||||
if release_id:
|
if release_id:
|
||||||
|
@ -42,6 +45,7 @@ class autoProcessMovie:
|
||||||
except:pass
|
except:pass
|
||||||
|
|
||||||
# Gather release info and proceed with trying to narrow results to one release choice
|
# Gather release info and proceed with trying to narrow results to one release choice
|
||||||
|
|
||||||
movies = result[section]
|
movies = result[section]
|
||||||
if not isinstance(movies, list):
|
if not isinstance(movies, list):
|
||||||
movies = [movies]
|
movies = [movies]
|
||||||
|
@ -126,6 +130,9 @@ class autoProcessMovie:
|
||||||
|
|
||||||
imdbid = find_imdbid(dirName, nzbName)
|
imdbid = find_imdbid(dirName, nzbName)
|
||||||
release = self.get_release(baseURL, imdbid, download_id)
|
release = self.get_release(baseURL, imdbid, download_id)
|
||||||
|
if not release:
|
||||||
|
logger.error('Unable to find %s in your wanted list, skipping ...' % (nzbName), section)
|
||||||
|
return 1
|
||||||
|
|
||||||
# pull info from release found if available
|
# pull info from release found if available
|
||||||
release_id = None
|
release_id = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue