aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/FileDownloader.py
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2012-11-27 17:20:25 +0100
committerFilippo Valsorda <filippo.valsorda@gmail.com>2012-11-27 17:20:25 +0100
commit717b1f72ed6070212a72ac823547cb3c776a6264 (patch)
treead67749cdec9335b57d0a2d4dee80612f314b2d0 /youtube_dl/FileDownloader.py
parentc9128b353d21aec13fcaff088a91d8e738b74ccc (diff)
default info_dict['format'] to info_dict['ext'] and make the YT one more verbose
Diffstat (limited to 'youtube_dl/FileDownloader.py')
-rw-r--r--youtube_dl/FileDownloader.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index b6aebe4ac..69d169904 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -355,6 +355,9 @@ class FileDownloader(object):
# Keep for backwards compatibility
info_dict['stitle'] = info_dict['title']
+ if not 'format' in info_dict:
+ info_dict['format'] = info_dict['ext']
+
reason = self._match_entry(info_dict)
if reason is not None:
self.to_screen(u'[download] ' + reason)