aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-10-28 11:28:02 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-10-28 11:28:02 +0100
commitc1002e96e98f4851aed5de0142e8e2bd1ac4661c (patch)
tree5ac0445e16795c60886c9bcdfc37459a0c3e0fea /youtube_dl/YoutubeDL.py
parent77d0a82fefd8ad7a2ab0662739aa2f039bed11ca (diff)
Let extractors omit ext in formats
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rw-r--r--youtube_dl/YoutubeDL.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index d4654cc05..b09eeff32 100644
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -484,6 +484,9 @@ class YoutubeDL(object):
res=self.format_resolution(format),
note=u' ({})'.format(format['format_note']) if format.get('format_note') is not None else '',
)
+ # Automatically determine file extension if missing
+ if 'ext' not in format:
+ format['ext'] = determine_ext(format['url'])
if self.params.get('listformats', None):
self.list_formats(info_dict)