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)'
|
ie_md += ' (Currently broken)'
|
||||||
yield ie_md
|
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(
|
out = '# Supported sites\n' + ''.join(
|
||||||
' - ' + md + '\n'
|
' - ' + md + '\n'
|
||||||
for md in gen_ies_md(ies))
|
for md in ies)
|
||||||
|
|
||||||
with io.open(outfile, 'w', encoding='utf-8') as outf:
|
with io.open(outfile, 'w', encoding='utf-8') as outf:
|
||||||
outf.write(out)
|
outf.write(out)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user