commit 7dba9cd0390f3cc89b1ff12ea1a4db6e8ddfd74b
parent 53936f3d571cc5ef36742f468666d04fc995056a
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Mon, 1 Jul 2013 18:21:29 +0200
Sort IEs alphabetically in --list-extractors
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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]