mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -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
|
from nzbtomedia import logger
|
||||||
|
|
||||||
class autoProcessMovie:
|
class autoProcessMovie:
|
||||||
def find_media_id(self, baseURL, download_id, dirName, nzbName):
|
def find_release_info(self, baseURL, download_id, dirName, nzbName):
|
||||||
|
|
||||||
imdbid = None
|
imdbid = None
|
||||||
movie_title = None
|
movie_title = None
|
||||||
|
@ -72,7 +72,6 @@ class autoProcessMovie:
|
||||||
return
|
return
|
||||||
|
|
||||||
results = r.json()
|
results = r.json()
|
||||||
if results['success'] and not results['empty']:
|
|
||||||
for i, movie in enumerate(results[section]):
|
for i, movie in enumerate(results[section]):
|
||||||
movies[i] = movie
|
movies[i] = movie
|
||||||
|
|
||||||
|
@ -170,7 +169,7 @@ class autoProcessMovie:
|
||||||
|
|
||||||
baseURL = protocol + host + ":" + port + web_root + "/api/" + apikey
|
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:
|
if release_status is None:
|
||||||
logger.error("Could not find a current status for %s on CouchPotatoServer", nzbName)
|
logger.error("Could not find a current status for %s on CouchPotatoServer", nzbName)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue