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