aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-05-02 23:36:55 +0600
committerSergey M․ <dstftw@gmail.com>2015-05-02 23:36:55 +0600
commit2699da8041cf10a636e0ac99efb91854b2c3aa58 (patch)
treedda27625ff140ccb6e67b93cccd9af2eb60deb09 /youtube_dl
parent98727e123f6d4881920bcb9fa57ea7956afb9a5a (diff)
[YoutubeDL] Improve description file naming
Diffstat (limited to 'youtube_dl')
-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 27c1e726f..eb7470f72 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -1271,7 +1271,7 @@ class YoutubeDL(object):
return
if self.params.get('writedescription', False):
- descfn = filename + '.description'
+ descfn = replace_extension(filename, 'description', info_dict.get('ext'))
if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(descfn)):
self.to_screen('[info] Video description is already present')
elif info_dict.get('description') is None: