This commit is contained in:
blacktwin 2022-05-06 13:01:45 -04:00
parent bef56becde
commit c68de7ac66

View File

@ -371,18 +371,16 @@ if __name__ == "__main__":
if opts.movieLabels: if opts.movieLabels:
allowed_filters(opts.movieLabels, filterMovies) allowed_filters(opts.movieLabels, filterMovies)
if opts.movieRatings: if opts.movieRatings:
filterMovies['contentRating'] = opts.movieRatings allowed_filters(opts.movieRatings, filterMovies)
if opts.tvLabels or opts.tvRatings: if opts.tvLabels or opts.tvRatings:
filterTelevision = {} filterTelevision = {}
if opts.tvLabels: if opts.tvLabels:
filterTelevision['label'] = opts.tvLabels allowed_filters(opts.tvLabels, filterTelevision)
for label in opts.filterTelevision[0]:
add_to_dictlist(filterMovies, label[0], label[1])
if opts.tvRatings: if opts.tvRatings:
filterTelevision['contentRating'] = opts.tvRatings allowed_filters(opts.tvRatings, filterTelevision)
if opts.musicLabels: if opts.musicLabels:
filterMusic = {} filterMusic = {}
filterMusic['label'] = opts.musicLabels allowed_filters(opts.musicLabels, filterMusic)
except AttributeError: except AttributeError:
print('No Plex Pass moving on...') print('No Plex Pass moving on...')