From 10e3742eb1e4ce469027a8e1cc84bce54550a3ec Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 23 Jan 2021 21:22:15 +0530 Subject: [PATCH] Fix overwrite in --write-link :ci skip dl --- youtube_dlc/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dlc/YoutubeDL.py b/youtube_dlc/YoutubeDL.py index 58f50a556..42e0234a0 100644 --- a/youtube_dlc/YoutubeDL.py +++ b/youtube_dlc/YoutubeDL.py @@ -2132,7 +2132,7 @@ class YoutubeDL(object): def _write_link_file(extension, template, newline, embed_filename): linkfn = replace_extension(full_filename, extension, info_dict.get('ext')) - if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(linkfn)): + if self.params.get('overwrites', True) and os.path.exists(encodeFilename(linkfn)): self.to_screen('[info] Internet shortcut is already present') else: try: