aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/FileDownloader.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-04-22 19:51:42 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-04-22 19:51:56 +0200
commitc681a03918a8f67f25e3ae7cc4140b76d6a73578 (patch)
tree6378d3131a2720790709c15ddf9403b8eaed2524 /youtube_dl/FileDownloader.py
parent74e3452b9e15cb377984a1bf4764f2228c150717 (diff)
downloadyoutube-dl-c681a03918a8f67f25e3ae7cc4140b76d6a73578.tar.xz
Fix --list-formats (Closes #799)
Diffstat (limited to 'youtube_dl/FileDownloader.py')
-rw-r--r--youtube_dl/FileDownloader.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index 9c0c42f8d..7139adf6b 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -458,6 +458,8 @@ class FileDownloader(object):
# Extract information from URL and process it
try:
ie_results = ie.extract(url)
+ if ie_results is None: # Finished already (backwards compatibility; listformats and friends should be moved here)
+ break
results = []
for ie_result in ie_results:
if not 'extractor' in ie_result: