diff options
author | pukkandan <pukkandan@gmail.com> | 2021-01-23 21:22:15 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-01-24 14:05:32 +0530 |
commit | 10e3742eb1e4ce469027a8e1cc84bce54550a3ec (patch) | |
tree | 7ecfc551096b3d68699aa80fc06200aec03a93a9 | |
parent | 0202b52a0c0a15da6073a122aae7ed6693e18f01 (diff) | |
download | hypervideo-pre-10e3742eb1e4ce469027a8e1cc84bce54550a3ec.tar.lz hypervideo-pre-10e3742eb1e4ce469027a8e1cc84bce54550a3ec.tar.xz hypervideo-pre-10e3742eb1e4ce469027a8e1cc84bce54550a3ec.zip |
Fix overwrite in --write-link
:ci skip dl
-rw-r--r-- | youtube_dlc/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |