diff --git a/twitchdl/commands/download.py b/twitchdl/commands/download.py
index c53f9d2..baf6d53 100644
--- a/twitchdl/commands/download.py
+++ b/twitchdl/commands/download.py
@@ -224,6 +224,12 @@ def _download_clip(slug, args):
target = _clip_target_filename(clip, args)
print_out("Target: {}".format(target))
+ if not args.overwrite and path.exists(target):
+ response = input("File exists. Overwrite? [Y/n]: ")
+ if response.lower().strip() not in ["", "y"]:
+ raise ConsoleError("Aborted")
+ args.overwrite = True
+
url = get_clip_authenticated_url(slug, args.quality)
print_out("Selected URL: {}".format(url))
@@ -249,6 +255,12 @@ def _download_video(video_id, args):
target = _video_target_filename(video, args)
print_out("Output: {}".format(target))
+ if not args.overwrite and path.exists(target):
+ response = input("File exists. Overwrite? [Y/n]: ")
+ if response.lower().strip() not in ["", "y"]:
+ raise ConsoleError("Aborted")
+ args.overwrite = True
+
print_out("Fetching access token...")
access_token = twitch.get_access_token(video_id)