aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-05-02 23:11:34 +0600
committerSergey M․ <dstftw@gmail.com>2015-05-02 23:11:34 +0600
commit666a9a2b954bb6c75a5fcdb9fbb18842038c188a (patch)
tree3e3d021a1e1d88c8a4ba3caaa5597e76d6a0c084 /youtube_dl/YoutubeDL.py
parenta4bcaad77314c714d2304cb21ffdd87a9b84316b (diff)
[YoutubeDL] Improve audio/video-only file naming
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-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 eaa436bf9..06d04c8f0 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -1403,7 +1403,7 @@ class YoutubeDL(object):
new_info = dict(info_dict)
new_info.update(f)
fname = self.prepare_filename(new_info)
- fname = prepend_extension(fname, 'f%s' % f['format_id'])
+ fname = prepend_extension(fname, 'f%s' % f['format_id'], new_info['ext'])
downloaded.append(fname)
partial_success = dl(fname, new_info)
success = success and partial_success