From: Philipp Hagemeister Date: Mon, 1 Jul 2013 16:21:29 +0000 (+0200) Subject: Sort IEs alphabetically in --list-extractors X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=7dba9cd0390f3cc89b1ff12ea1a4db6e8ddfd74b;p=youtube-dl.git Sort IEs alphabetically in --list-extractors --- 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]