mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
don't try and process when no api/user. Fixes #1240
This commit is contained in:
parent
fa334e6851
commit
fb786c44f5
2 changed files with 7 additions and 0 deletions
|
@ -263,6 +263,10 @@ class autoProcessMovie(object):
|
||||||
logger.debug('Renaming: {0} to: {1}'.format(video, video2))
|
logger.debug('Renaming: {0} to: {1}'.format(video, video2))
|
||||||
os.rename(video, video2)
|
os.rename(video, video2)
|
||||||
|
|
||||||
|
if not apikey: #If only using Transcoder functions, exit here.
|
||||||
|
logger.info('No CouchPotato or Radarr apikey entered. Processing completed.')
|
||||||
|
return [0, "{0}: Successfully post-processed {1}".format(section, inputName)]
|
||||||
|
|
||||||
params = {}
|
params = {}
|
||||||
if download_id:
|
if download_id:
|
||||||
params['downloader'] = downloader or clientAgent
|
params['downloader'] = downloader or clientAgent
|
||||||
|
|
|
@ -226,6 +226,9 @@ class autoProcessTV(object):
|
||||||
[fork_params.pop(k) for k, v in fork_params.items() if v is None]
|
[fork_params.pop(k) for k, v in fork_params.items() if v is None]
|
||||||
|
|
||||||
if status == 0:
|
if status == 0:
|
||||||
|
if not username and not apikey:
|
||||||
|
logger.info('No SickBeard username or Sonarr apikey entered. Processing completed.')
|
||||||
|
return [0, "{0}: Successfully post-processed {1}".format(section, inputName)]
|
||||||
logger.postprocess("SUCCESS: The download succeeded, sending a post-process request", section)
|
logger.postprocess("SUCCESS: The download succeeded, sending a post-process request", section)
|
||||||
else:
|
else:
|
||||||
core.FAILED = True
|
core.FAILED = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue