mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-14 13:37:45 +08:00
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.
This commit is contained in:
parent
b0c200f1ec
commit
5678b4c821
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user