add omdbapi key to Radarr config. Fixes #1266

This commit is contained in:
clinton-hall 2017-06-15 22:48:37 +09:30
commit 098135263a
5 changed files with 28 additions and 6 deletions

View file

@ -51,6 +51,8 @@
###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ###### ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
ssl = 0 ssl = 0
web_root = web_root =
# api key for www.omdbapi.com (used as alternative to imdb)
omdbapikey =
# Enable/Disable linking for Torrents # Enable/Disable linking for Torrents
Torrent_NoLink = 0 Torrent_NoLink = 0
keep_archive = 1 keep_archive = 1
@ -68,8 +70,6 @@
watch_dir = watch_dir =
##### Set the recursive directory permissions to the following (0 to disable) ##### Set the recursive directory permissions to the following (0 to disable)
chmodDirectory = 0 chmodDirectory = 0
# api key for www.omdbapi.com (used as alternative to imdb)
omdbapikey =
[Radarr] [Radarr]
#### autoProcessing for Movies #### autoProcessing for Movies
@ -82,6 +82,8 @@
###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ###### ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
web_root = web_root =
ssl = 0 ssl = 0
# api key for www.omdbapi.com (used as alternative to imdb)
omdbapikey =
delete_failed = 0 delete_failed = 0
# Enable/Disable linking for Torrents # Enable/Disable linking for Torrents
Torrent_NoLink = 0 Torrent_NoLink = 0

View file

@ -293,9 +293,9 @@ class ConfigObj(configobj.ConfigObj, Section):
section = "CouchPotato" section = "CouchPotato"
envCatKey = 'NZBPO_CPSCATEGORY' envCatKey = 'NZBPO_CPSCATEGORY'
envKeys = ['ENABLED', 'APIKEY', 'HOST', 'PORT', 'SSL', 'WEB_ROOT', 'METHOD', 'DELETE_FAILED', 'REMOTE_PATH', envKeys = ['ENABLED', 'APIKEY', 'HOST', 'PORT', 'SSL', 'WEB_ROOT', 'METHOD', 'DELETE_FAILED', 'REMOTE_PATH',
'WAIT_FOR', 'WATCH_DIR'] 'WAIT_FOR', 'WATCH_DIR', 'OMDBAPIKEY']
cfgKeys = ['enabled', 'apikey', 'host', 'port', 'ssl', 'web_root', 'method', 'delete_failed', 'remote_path', cfgKeys = ['enabled', 'apikey', 'host', 'port', 'ssl', 'web_root', 'method', 'delete_failed', 'remote_path',
'wait_for', 'watch_dir'] 'wait_for', 'watch_dir', 'omdbapikey']
if envCatKey in os.environ: if envCatKey in os.environ:
for index in range(len(envKeys)): for index in range(len(envKeys)):
key = 'NZBPO_CPS{index}'.format(index=envKeys[index]) key = 'NZBPO_CPS{index}'.format(index=envKeys[index])
@ -397,9 +397,9 @@ class ConfigObj(configobj.ConfigObj, Section):
section = "Radarr" section = "Radarr"
envCatKey = 'NZBPO_RACATEGORY' envCatKey = 'NZBPO_RACATEGORY'
envKeys = ['ENABLED', 'HOST', 'APIKEY', 'PORT', 'SSL', 'WEB_ROOT', 'WATCH_DIR', 'FORK', 'DELETE_FAILED', envKeys = ['ENABLED', 'HOST', 'APIKEY', 'PORT', 'SSL', 'WEB_ROOT', 'WATCH_DIR', 'FORK', 'DELETE_FAILED',
'TORRENT_NOLINK', 'NZBEXTRACTIONBY', 'WAIT_FOR', 'DELETE_FAILED', 'REMOTE_PATH'] 'TORRENT_NOLINK', 'NZBEXTRACTIONBY', 'WAIT_FOR', 'DELETE_FAILED', 'REMOTE_PATH', 'OMDBAPIKEY']
cfgKeys = ['enabled', 'host', 'apikey', 'port', 'ssl', 'web_root', 'watch_dir', 'fork', 'delete_failed', cfgKeys = ['enabled', 'host', 'apikey', 'port', 'ssl', 'web_root', 'watch_dir', 'fork', 'delete_failed',
'Torrent_NoLink', 'nzbExtractionBy', 'wait_for', 'delete_failed', 'remote_path'] 'Torrent_NoLink', 'nzbExtractionBy', 'wait_for', 'delete_failed', 'remote_path', 'omdbapikey']
if envCatKey in os.environ: if envCatKey in os.environ:
for index in range(len(envKeys)): for index in range(len(envKeys)):
key = 'NZBPO_RA{index}'.format(index=envKeys[index]) key = 'NZBPO_RA{index}'.format(index=envKeys[index])

View file

@ -68,6 +68,11 @@
# set this to where your CouchPotato completed downloads are. # set this to where your CouchPotato completed downloads are.
#cpswatch_dir= #cpswatch_dir=
# CouchPotato OMDB API Key.
#
# api key for www.omdbapi.com (used as alternative to imdb to assist with movie identification).
#cpsomdbapikey=
# CouchPotato Postprocess Method (renamer, manage). # CouchPotato Postprocess Method (renamer, manage).
# #
# use "renamer" for CPS renamer (default) or "manage" to call a manage update. # use "renamer" for CPS renamer (default) or "manage" to call a manage update.

View file

@ -68,6 +68,11 @@
# use "renamer" for CPS renamer (default) or "manage" to call a manage update. # use "renamer" for CPS renamer (default) or "manage" to call a manage update.
#cpsmethod=renamer #cpsmethod=renamer
# CouchPotato OMDB API Key.
#
# api key for www.omdbapi.com (used as alternative to imdb to assist with movie identification).
#cpsomdbapikey=
# CouchPotato Delete Failed Downloads (0, 1). # CouchPotato Delete Failed Downloads (0, 1).
# #
# set to 1 to delete failed, or 0 to leave files in place. # set to 1 to delete failed, or 0 to leave files in place.
@ -116,6 +121,11 @@
# Set the number of minutes to wait after calling the renamer, to check the episode has changed status. # Set the number of minutes to wait after calling the renamer, to check the episode has changed status.
#rawait_for=6 #rawait_for=6
# Radarr OMDB API Key.
#
# api key for www.omdbapi.com (used as alternative to imdb to assist with movie identification).
#raomdbapikey=
# Radarr Delete Failed Downloads (0, 1). # Radarr Delete Failed Downloads (0, 1).
# #
# set to 1 to delete failed, or 0 to leave files in place. # set to 1 to delete failed, or 0 to leave files in place.

View file

@ -63,6 +63,11 @@
# set this if using a reverse proxy. # set this if using a reverse proxy.
#raweb_root= #raweb_root=
# Radarr OMDB API Key.
#
# api key for www.omdbapi.com (used as alternative to imdb to assist with movie identification).
#raomdbapikey=
# Radarr wait_for # Radarr wait_for
# #
# Set the number of minutes to wait after calling the renamer, to check the episode has changed status. # Set the number of minutes to wait after calling the renamer, to check the episode has changed status.