From 7ac88d4cb8a0c0c50343678c7dc9c0ccd185aa11 Mon Sep 17 00:00:00 2001 From: "davidaghaian@student.cccd.edu" Date: Sat, 4 Aug 2018 15:06:10 -0700 Subject: [PATCH] Added default type for ratings option --- traktarr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traktarr.py b/traktarr.py index 378c6d2..16ec748 100755 --- a/traktarr.py +++ b/traktarr.py @@ -394,7 +394,7 @@ def movie(movie_id, folder=None, no_search=False): @click.option('--add-delay', '-d', default=2.5, help='Seconds between each add request to Radarr.', show_default=True) @click.option('--sort', '-s', default='votes', type=click.Choice(['votes', 'rating', 'release']), help='Sort list to process.') -@click.option('--rating','-r',default=None,help='Set a minimum rating threshold (according to Rotten Tomatoes)') +@click.option('--rating','-r',default=None,type=(int),help='Set a minimum rating threshold (according to Rotten Tomatoes)') @click.option('--genre', '-g', default=None, help='Only add movies from this genre to Radarr.') @click.option('--folder', '-f', default=None, help='Add movies with this root folder to Radarr.') @click.option('--actor', '-a', default=None, help='Only add movies from this actor to Radarr.')