A feature-rich command-line audio/video downloader
[YoutubeDL] Improve annotations file naming
Sergey M․98727e123f6d
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.pyindex 0330b0b34c..27c1e726ff 100755--- a/youtube_dl/YoutubeDL.py+++ b/youtube_dl/YoutubeDL.py@@ -1286,7 +1286,7 @@ class YoutubeDL(object):returnif self.params.get('writeannotations', False):- annofn = filename + '.annotations.xml'+ annofn = replace_extension(filename, 'annotations.xml', info_dict.get('ext'))if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(annofn)):self.to_screen('[info] Video annotations are already present')else: