From f8fa315c6a8d35cf201109b71fc8e4ec7eccefe6 Mon Sep 17 00:00:00 2001 From: salty Date: Sat, 19 Feb 2022 16:00:21 +0100 Subject: [PATCH] removed predb from radarr minimum availability. closes #161 --- README.md | 10 +++++----- media/radarr.py | 2 -- traktarr.py | 8 ++++---- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 0b4dc21..35f579f 100644 --- a/README.md +++ b/README.md @@ -960,7 +960,7 @@ Radarr configuration. `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). @@ -1165,7 +1165,7 @@ Usage: traktarr movie [OPTIONS] Options: -id, --movie-id TEXT Trakt Movie ID. [required] -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. --no-search Disable search when adding movie to Radarr. --help Show this message and exit. @@ -1179,7 +1179,7 @@ Options: `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). @@ -1213,7 +1213,7 @@ Options: specified as a comma-separated list. Use 'ignore' to add movies from any genre, including ones with no genre specified. -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 'released'. -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. - - Choices are `announced`, `in_cinemas`, `released` (Physical/Web), or `predb`. + - Choices are `announced`, `in_cinemas` or `released` (Physical/Web). - Default is `released` (Physical/Web). diff --git a/media/radarr.py b/media/radarr.py index 132821b..8cab83f 100644 --- a/media/radarr.py +++ b/media/radarr.py @@ -24,8 +24,6 @@ class Radarr(PVR): minimum_availability = 'announced' elif min_availability_temp == 'in_cinemas': minimum_availability = 'inCinemas' - elif min_availability_temp == 'predb': - minimum_availability = 'preDB' else: minimum_availability = 'released' diff --git a/traktarr.py b/traktarr.py index 212efe0..47b82fe 100755 --- a/traktarr.py +++ b/traktarr.py @@ -716,7 +716,7 @@ def shows( help='Add movie with this root folder to Radarr.') @click.option( '--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\'.') @click.option( '--no-search', @@ -738,7 +738,7 @@ def movie( log.debug('Set root folder to: \'%s\'', cfg['radarr']['root_folder']) # 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: cfg['radarr']['minimum_availability'] = minimum_availability @@ -830,7 +830,7 @@ def movie( help='Add movies with this root folder to Radarr.') @click.option( '--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\'.') @click.option( '--person', '-p', @@ -958,7 +958,7 @@ def movies( log.debug('Set root folder to: \'%s\'', cfg['radarr']['root_folder']) # 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: cfg['radarr']['minimum_availability'] = minimum_availability