1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-23 01:08:10 +00:00

[YoutubeDL] Improve audio/video-only file naming

This commit is contained in:
Sergey M․ 2015-05-02 23:11:34 +06:00
parent a4bcaad773
commit 666a9a2b95

View file

@ -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