From 5678b4c821df0410848ee82c3916ce8b87098ab4 Mon Sep 17 00:00:00 2001 From: Matthieu Muffato Date: Sun, 26 Jun 2016 21:51:19 +0100 Subject: [PATCH] Made the generation of supported sites repeatable sorted() was not called on the string that's actually printed, but on its prefix, resulting in some strings being printed in a random order. This commit makes the sorting repeatable. --- devscripts/make_supportedsites.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devscripts/make_supportedsites.py b/devscripts/make_supportedsites.py index 8cb4a4638..79b1ccca9 100644 --- a/devscripts/make_supportedsites.py +++ b/devscripts/make_supportedsites.py @@ -33,10 +33,10 @@ def main(): ie_md += ' (Currently broken)' yield ie_md - ies = sorted(youtube_dl.gen_extractors(), key=lambda i: i.IE_NAME.lower()) + ies = sorted(gen_ies_md(youtube_dl.gen_extractors()), key=lambda s: s.lower()) out = '# Supported sites\n' + ''.join( ' - ' + md + '\n' - for md in gen_ies_md(ies)) + for md in ies) with io.open(outfile, 'w', encoding='utf-8') as outf: outf.write(out)