Fix --list-formats (Closes #799)

This commit is contained in:
Philipp Hagemeister 2013-04-22 19:51:42 +02:00
parent 74e3452b9e
commit c681a03918
2 changed files with 5 additions and 6 deletions

View file

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