diff --git a/changelog.d/748.change.rst b/changelog.d/748.change.rst index a57a475b..83312a9a 100644 --- a/changelog.d/748.change.rst +++ b/changelog.d/748.change.rst @@ -1 +1 @@ -Add a skip-wrong-fps cli option to completely skip subtitles with FPS different from the video FPS (if detected) +Add a --skip-wrong-fps cli option to completely skip subtitles with FPS different from the video FPS (if detected) diff --git a/src/subliminal/cli.py b/src/subliminal/cli.py index 24acfcd1..4431c8ae 100644 --- a/src/subliminal/cli.py +++ b/src/subliminal/cli.py @@ -469,9 +469,15 @@ def cache(ctx: click.Context, clear_subliminal: bool) -> None: 'Do not use this unless your media player requires it.' ), ) -@click.option('-f', '--force', is_flag=True, default=False, help='Force download even if a subtitle already exist.') @click.option( - '-w', + '-f', + '--force', + is_flag=True, + default=False, + help='Force download even if a subtitle already exist.', +) +@click.option( + '-W', '--skip-wrong-fps', is_flag=True, default=False, @@ -531,7 +537,13 @@ def cache(ctx: click.Context, clear_subliminal: bool) -> None: default='alpha2', help='Format of the language code in the saved subtitle name. Default is a 2-letter language code.', ) -@click.option('-w', '--max-workers', type=click.IntRange(1, 50), default=None, help='Maximum number of threads to use.') +@click.option( + '-w', + '--max-workers', + type=click.IntRange(1, 50), + default=None, + help='Maximum number of threads to use.', +) @click.option( '-z/-Z', '--archives/--no-archives',