mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 02:25:11 +00:00
[YoutubeDL] Improve JSON info file naming
This commit is contained in:
parent
b3ed15b760
commit
b29e0000e6
1 changed files with 2 additions and 1 deletions
|
@ -71,6 +71,7 @@
|
|||
write_string,
|
||||
YoutubeDLHandler,
|
||||
prepend_extension,
|
||||
replace_extension,
|
||||
args_to_str,
|
||||
age_restricted,
|
||||
)
|
||||
|
@ -1332,7 +1333,7 @@ def process_info(self, info_dict):
|
|||
return
|
||||
|
||||
if self.params.get('writeinfojson', False):
|
||||
infofn = os.path.splitext(filename)[0] + '.info.json'
|
||||
infofn = replace_extension(filename, 'info.json', info_dict.get('ext'))
|
||||
if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(infofn)):
|
||||
self.to_screen('[info] Video description metadata is already present')
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue