mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
We now get the clientAgent from the release info and send that with the download_id to insure CouchPotato is happy.
This commit is contained in:
parent
eb7822b60b
commit
ab1c886e38
1 changed files with 3 additions and 1 deletions
|
@ -115,11 +115,13 @@ class autoProcessMovie:
|
|||
# try to get release_id, media_id, and download_id if one was not passed in
|
||||
release_id = None
|
||||
media_id = None
|
||||
downloader = None
|
||||
if len(releases) == 1:
|
||||
try:
|
||||
release_id = releases.keys()[0]
|
||||
media_id = releases[release_id]['media_id']
|
||||
download_id = releases[release_id]['download_info']['id']
|
||||
downloader = releases[release_id]['download_info']['id']
|
||||
except:pass
|
||||
|
||||
process_all_exceptions(nzbName.lower(), dirName)
|
||||
|
@ -140,7 +142,7 @@ class autoProcessMovie:
|
|||
|
||||
params = {}
|
||||
if download_id:
|
||||
params['downloader'] = clientAgent
|
||||
params['downloader'] = downloader or clientAgent
|
||||
params['download_id'] = download_id
|
||||
|
||||
params['media_folder'] = dirName
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue