Merge branch 'master' of github.com:rg3/youtube-dl
[youtube-dl] / youtube_dl / FileDownloader.py
index 19766153c477dd7a90bb3282ec51c9ea1001274e..100779756d956033ace52742d9be3ef13b821323 100644 (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: