From: Sergey M․ Date: Sat, 2 May 2015 17:11:34 +0000 (+0600) Subject: [YoutubeDL] Improve audio/video-only file naming X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=666a9a2b954bb6c75a5fcdb9fbb18842038c188a;p=youtube-dl [YoutubeDL] Improve audio/video-only file naming --- 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