removed predb from radarr minimum availability.

closes #161
pull/162/head
salty 3 years ago
parent 5b0427c21c
commit f8fa315c6a
No known key found for this signature in database
GPG Key ID: 5B59BEBA76C5A7FD

@ -960,7 +960,7 @@ Radarr configuration.
`minimum_availability` - The minimum availability the movies are set to. `minimum_availability` - The minimum availability the movies are set to.
- Choices are `announced`, `in_cinemas`, `released` (Physical/Web), or `predb`. - Choices are `announced`, `in_cinemas` or `released` (Physical/Web).
- Default is `released` (Physical/Web). - Default is `released` (Physical/Web).
@ -1165,7 +1165,7 @@ Usage: traktarr movie [OPTIONS]
Options: Options:
-id, --movie-id TEXT Trakt Movie ID. [required] -id, --movie-id TEXT Trakt Movie ID. [required]
-f, --folder TEXT Add movie with this root folder to Radarr. -f, --folder TEXT Add movie with this root folder to Radarr.
-ma, --minimum-availability [announced|in_cinemas|released|predb] -ma, --minimum-availability [announced|in_cinemas|released]
Add movies with this minimum availability to Radarr. Add movies with this minimum availability to Radarr.
--no-search Disable search when adding movie to Radarr. --no-search Disable search when adding movie to Radarr.
--help Show this message and exit. --help Show this message and exit.
@ -1179,7 +1179,7 @@ Options:
`minimum_availability` - The minimum availability the movies are set to. `minimum_availability` - The minimum availability the movies are set to.
- Choices are `announced`, `in_cinemas`, `released` (Physical/Web), or `predb`. - Choices are `announced`, `in_cinemas` or `released` (Physical/Web).
- Default is `released` (Physical/Web). - Default is `released` (Physical/Web).
@ -1213,7 +1213,7 @@ Options:
specified as a comma-separated list. Use 'ignore' to add movies specified as a comma-separated list. Use 'ignore' to add movies
from any genre, including ones with no genre specified. from any genre, including ones with no genre specified.
-f, --folder TEXT Add movies with this root folder to Radarr. -f, --folder TEXT Add movies with this root folder to Radarr.
-ma, --minimum-availability [announced|in_cinemas|released|predb] -ma, --minimum-availability [announced|in_cinemas|released]
Add movies with this minimum availability to Radarr. Default is Add movies with this minimum availability to Radarr. Default is
'released'. 'released'.
-p, --person TEXT Only add movies from this person (e.g. actor) to Radarr. Only -p, --person TEXT Only add movies from this person (e.g. actor) to Radarr. Only
@ -1287,7 +1287,7 @@ Choices are: `anticipated`, `trending`, `popular`, `boxoffice`, `watched`, `play
`minimum_availability` - The minimum availability the movies are set to. `minimum_availability` - The minimum availability the movies are set to.
- Choices are `announced`, `in_cinemas`, `released` (Physical/Web), or `predb`. - Choices are `announced`, `in_cinemas` or `released` (Physical/Web).
- Default is `released` (Physical/Web). - Default is `released` (Physical/Web).

@ -24,8 +24,6 @@ class Radarr(PVR):
minimum_availability = 'announced' minimum_availability = 'announced'
elif min_availability_temp == 'in_cinemas': elif min_availability_temp == 'in_cinemas':
minimum_availability = 'inCinemas' minimum_availability = 'inCinemas'
elif min_availability_temp == 'predb':
minimum_availability = 'preDB'
else: else:
minimum_availability = 'released' minimum_availability = 'released'

@ -716,7 +716,7 @@ def shows(
help='Add movie with this root folder to Radarr.') help='Add movie with this root folder to Radarr.')
@click.option( @click.option(
'--minimum-availability', '-ma', '--minimum-availability', '-ma',
type=click.Choice(['announced', 'in_cinemas', 'released', 'predb']), type=click.Choice(['announced', 'in_cinemas', 'released']),
help='Add movies with this minimum availability to Radarr. Default is \'released\'.') help='Add movies with this minimum availability to Radarr. Default is \'released\'.')
@click.option( @click.option(
'--no-search', '--no-search',
@ -738,7 +738,7 @@ def movie(
log.debug('Set root folder to: \'%s\'', cfg['radarr']['root_folder']) log.debug('Set root folder to: \'%s\'', cfg['radarr']['root_folder'])
# replace radarr.minimum_availability if minimum_availability is supplied # replace radarr.minimum_availability if minimum_availability is supplied
valid_min_avail = ['announced', 'in_cinemas', 'released', 'predb'] valid_min_avail = ['announced', 'in_cinemas', 'released']
if minimum_availability: if minimum_availability:
cfg['radarr']['minimum_availability'] = minimum_availability cfg['radarr']['minimum_availability'] = minimum_availability
@ -830,7 +830,7 @@ def movie(
help='Add movies with this root folder to Radarr.') help='Add movies with this root folder to Radarr.')
@click.option( @click.option(
'--minimum-availability', '-ma', '--minimum-availability', '-ma',
type=click.Choice(['announced', 'in_cinemas', 'released', 'predb']), type=click.Choice(['announced', 'in_cinemas', 'released']),
help='Add movies with this minimum availability to Radarr. Default is \'released\'.') help='Add movies with this minimum availability to Radarr. Default is \'released\'.')
@click.option( @click.option(
'--person', '-p', '--person', '-p',
@ -958,7 +958,7 @@ def movies(
log.debug('Set root folder to: \'%s\'', cfg['radarr']['root_folder']) log.debug('Set root folder to: \'%s\'', cfg['radarr']['root_folder'])
# replace radarr.minimum_availability if minimum_availability is supplied # replace radarr.minimum_availability if minimum_availability is supplied
valid_min_avail = ['announced', 'in_cinemas', 'released', 'predb'] valid_min_avail = ['announced', 'in_cinemas', 'released']
if minimum_availability: if minimum_availability:
cfg['radarr']['minimum_availability'] = minimum_availability cfg['radarr']['minimum_availability'] = minimum_availability

Loading…
Cancel
Save