From c68de7ac662663b4c28a00ced421ae1fade3cd3f Mon Sep 17 00:00:00 2001 From: blacktwin Date: Fri, 6 May 2022 13:01:45 -0400 Subject: [PATCH] addressing #336 --- utility/plex_api_share.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/utility/plex_api_share.py b/utility/plex_api_share.py index ba051a1..07b3bc8 100644 --- a/utility/plex_api_share.py +++ b/utility/plex_api_share.py @@ -371,18 +371,16 @@ if __name__ == "__main__": if opts.movieLabels: allowed_filters(opts.movieLabels, filterMovies) if opts.movieRatings: - filterMovies['contentRating'] = opts.movieRatings + allowed_filters(opts.movieRatings, filterMovies) if opts.tvLabels or opts.tvRatings: filterTelevision = {} if opts.tvLabels: - filterTelevision['label'] = opts.tvLabels - for label in opts.filterTelevision[0]: - add_to_dictlist(filterMovies, label[0], label[1]) + allowed_filters(opts.tvLabels, filterTelevision) if opts.tvRatings: - filterTelevision['contentRating'] = opts.tvRatings + allowed_filters(opts.tvRatings, filterTelevision) if opts.musicLabels: filterMusic = {} - filterMusic['label'] = opts.musicLabels + allowed_filters(opts.musicLabels, filterMusic) except AttributeError: print('No Plex Pass moving on...')