mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-05 02:19:36 +02:00
Fix overwrite in --write-link
:ci skip dl
This commit is contained in:
parent
0202b52a0c
commit
10e3742eb1
@ -2132,7 +2132,7 @@ def dl(name, info, subtitle=False):
|
|||||||
|
|
||||||
def _write_link_file(extension, template, newline, embed_filename):
|
def _write_link_file(extension, template, newline, embed_filename):
|
||||||
linkfn = replace_extension(full_filename, extension, info_dict.get('ext'))
|
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')
|
self.to_screen('[info] Internet shortcut is already present')
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user