diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-07-01 18:21:29 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-07-01 18:21:29 +0200 |
commit | 7dba9cd0390f3cc89b1ff12ea1a4db6e8ddfd74b (patch) | |
tree | 0a834d5ca5c27102c4b632eb18dd95a5b7a827a1 /youtube_dl | |
parent | 53936f3d571cc5ef36742f468666d04fc995056a (diff) |
Sort IEs alphabetically in --list-extractors
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 98388a9f3..c4b09695c 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -420,7 +420,7 @@ def _real_main(argv=None): extractors = gen_extractors() if opts.list_extractors: - for ie in extractors: + for ie in sorted(extractors, key=lambda ie: ie.IE_NAME.lower()): compat_print(ie.IE_NAME + (' (CURRENTLY BROKEN)' if not ie._WORKING else '')) matchedUrls = [url for url in all_urls if ie.suitable(url)] all_urls = [url for url in all_urls if url not in matchedUrls] |