From c681a03918a8f67f25e3ae7cc4140b76d6a73578 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Mon, 22 Apr 2013 19:51:42 +0200 Subject: Fix --list-formats (Closes #799) --- youtube_dl/FileDownloader.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'youtube_dl/FileDownloader.py') 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: -- cgit v1.2.3