mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Fix for download_id
This commit is contained in:
parent
cdadf045a8
commit
42b14fd079
1 changed files with 7 additions and 5 deletions
|
@ -152,9 +152,13 @@ class autoProcessMovie:
|
|||
if not releases:
|
||||
logger.error("Could not find any releases marked as WANTED on CouchPotato to compare changes against %s, skipping ...", nzbName)
|
||||
return 1
|
||||
|
||||
release_id = releases.keys()[0]
|
||||
media_id = releases[release_id]['media_id']
|
||||
|
||||
release_id = None
|
||||
media_id = None
|
||||
if len(releases) == 1:
|
||||
release_id = releases.keys()[0]
|
||||
media_id = releases[release_id]['media_id']
|
||||
download_id = releases['download_info']['id']
|
||||
|
||||
process_all_exceptions(nzbName.lower(), dirName)
|
||||
nzbName, dirName = convert_to_ascii(nzbName, dirName)
|
||||
|
@ -173,8 +177,6 @@ class autoProcessMovie:
|
|||
command = "/renamer.scan"
|
||||
|
||||
params = {}
|
||||
if len(releases) == 1:
|
||||
download_id =
|
||||
if download_id:
|
||||
params['downloader'] = clientAgent
|
||||
params['download_id'] = download_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue