mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Fixed another bug in autoProcessMovie
This commit is contained in:
parent
eeee92c830
commit
1e90193f47
1 changed files with 4 additions and 5 deletions
|
@ -14,7 +14,7 @@ from nzbtomedia.nzbToMediaUtil import convert_to_ascii, delete
|
|||
from nzbtomedia import logger
|
||||
|
||||
class autoProcessMovie:
|
||||
def find_media_id(self, baseURL, download_id, dirName, nzbName):
|
||||
def find_release_info(self, baseURL, download_id, dirName, nzbName):
|
||||
|
||||
imdbid = None
|
||||
movie_title = None
|
||||
|
@ -72,9 +72,8 @@ class autoProcessMovie:
|
|||
return
|
||||
|
||||
results = r.json()
|
||||
if results['success'] and not results['empty']:
|
||||
for i, movie in enumerate(results[section]):
|
||||
movies[i] = movie
|
||||
for i, movie in enumerate(results[section]):
|
||||
movies[i] = movie
|
||||
|
||||
if len(movies) > 0:
|
||||
try:
|
||||
|
@ -170,7 +169,7 @@ class autoProcessMovie:
|
|||
|
||||
baseURL = protocol + host + ":" + port + web_root + "/api/" + apikey
|
||||
|
||||
media_id, download_id, release_id, release_status = self.find_media_id(baseURL, download_id, dirName, nzbName) # get the CPS database movie id for this movie.
|
||||
media_id, download_id, release_id, release_status = self.find_release_info(baseURL, download_id, dirName, nzbName) # get the CPS database movie id for this movie.
|
||||
|
||||
if release_status is None:
|
||||
logger.error("Could not find a current status for %s on CouchPotatoServer", nzbName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue