From 7dba9cd0390f3cc89b1ff12ea1a4db6e8ddfd74b Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Mon, 1 Jul 2013 18:21:29 +0200 Subject: [PATCH] Sort IEs alphabetically in --list-extractors --- youtube_dl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.22.2