projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b29e000
)
[YoutubeDL] Improve annotations file naming
author
Sergey M․
<dstftw@gmail.com>
Sat, 2 May 2015 17:35:18 +0000
(23:35 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 2 May 2015 17:35:18 +0000
(23:35 +0600)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index 0330b0b34c917d301063a53faf55d10a982497df..27c1e726ffb549c849e1ccea58dabd094a6f85ef 100755
(executable)
--- 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: