Fix --exclude-directory argument

This commit is contained in:
2020-12-05 16:53:26 +01:00
parent c9eb733014
commit 47c5c3380f

View File

@ -345,7 +345,8 @@ if __name__ == '__main__':
) )
parser.add_argument( parser.add_argument(
'-x', '--exclude-directory', '-x', '--exclude-directory',
nargs=1, action='append',
default=[],
help='''Do not display movies available in the following directory. help='''Do not display movies available in the following directory.
This will prevent you from recording the same movie multiple This will prevent you from recording the same movie multiple
times.''' times.'''
@ -359,6 +360,7 @@ if __name__ == '__main__':
movies = TVGuideScraper._getMovies() movies = TVGuideScraper._getMovies()
else: else:
movies = TVGuideScraper.findAllMovies() movies = TVGuideScraper.findAllMovies()
print(args.exclude_directory)
fmp = FreeboxMoviePlanner( fmp = FreeboxMoviePlanner(
movies, movies,
excluded_channels=args.exclude, excluded_channels=args.exclude,