Fix double colon in prompt

This commit is contained in:
Ivan Habunek 2024-04-10 08:47:38 +02:00
parent 446b4f9f91
commit 0d3c3df2f8
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D

View File

@ -251,7 +251,7 @@ def _download_video(video_id: str, args: DownloadOptions) -> None:
click.echo(f"Output: {blue(target)}") click.echo(f"Output: {blue(target)}")
if not args.overwrite and path.exists(target): if not args.overwrite and path.exists(target):
response = click.prompt("File exists. Overwrite? [Y/n]: ", default="Y", show_default=False) response = click.prompt("File exists. Overwrite? [Y/n]", default="Y", show_default=False)
if response.lower().strip() != "y": if response.lower().strip() != "y":
raise click.Abort() raise click.Abort()
args.overwrite = True args.overwrite = True