mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Fixed another bug in autoProcessMovie for clientAgent and manual runs
This commit is contained in:
parent
ce38317d48
commit
6a74a4443e
1 changed files with 6 additions and 3 deletions
|
@ -58,6 +58,7 @@ class autoProcessMovie:
|
||||||
media_id = None
|
media_id = None
|
||||||
release_status = None
|
release_status = None
|
||||||
matched_release = None
|
matched_release = None
|
||||||
|
downloader = None
|
||||||
|
|
||||||
while(True):
|
while(True):
|
||||||
# find imdbid in nzbName
|
# find imdbid in nzbName
|
||||||
|
@ -104,9 +105,10 @@ class autoProcessMovie:
|
||||||
media_id = matched_release['media_id']
|
media_id = matched_release['media_id']
|
||||||
release_status = matched_release['status']
|
release_status = matched_release['status']
|
||||||
download_id = matched_release['download_info']['id']
|
download_id = matched_release['download_info']['id']
|
||||||
|
downloader = matched_release['download_info']['downloader']
|
||||||
except:pass
|
except:pass
|
||||||
|
|
||||||
return media_id, download_id, release_id, release_status
|
return media_id, download_id, downloader, release_id, release_status
|
||||||
|
|
||||||
def get_status(self, baseURL, release_id):
|
def get_status(self, baseURL, release_id):
|
||||||
release_status = None
|
release_status = None
|
||||||
|
@ -180,7 +182,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_release_info(baseURL, download_id, dirName, nzbName) # get the CPS database movie id for this movie.
|
media_id, download_id, downloader, 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)
|
||||||
|
@ -214,7 +216,8 @@ class autoProcessMovie:
|
||||||
|
|
||||||
params = {}
|
params = {}
|
||||||
if download_id:
|
if download_id:
|
||||||
params['downloader'] = clientAgent
|
if downloader:
|
||||||
|
params['downloader'] = downloader or clientAgent
|
||||||
params['download_id'] = download_id
|
params['download_id'] = download_id
|
||||||
|
|
||||||
if remote_path:
|
if remote_path:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue