aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-05-02 23:35:18 +0600
committerSergey M․ <dstftw@gmail.com>2015-05-02 23:35:18 +0600
commit98727e123f6d4881920bcb9fa57ea7956afb9a5a (patch)
treecd7b5754e6be1d1ad04414de1c54f757786d71dd
parentb29e0000e69458252f73ffe62a466da5d1449863 (diff)
[YoutubeDL] Improve annotations file naming
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 0330b0b34..27c1e726f 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -1286,7 +1286,7 @@ class YoutubeDL(object):
return
if 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: