]>
jfr.im git - yt-dlp.git/blob - devscripts/make_supportedsites.py
3 # Allow direct execution
7 sys
.path
.insert(0, os
.path
.dirname(os
.path
.dirname(os
.path
.abspath(__file__
))))
12 from yt_dlp
.extractor
import list_extractor_classes
16 parser
= optparse
.OptionParser(usage
='%prog OUTFILE.md')
17 _
, args
= parser
.parse_args()
19 parser
.error('Expected an output filename')
21 out
= '\n'.join(ie
.description() for ie
in list_extractor_classes() if ie
.IE_DESC
is not False)
23 with open(args
[0], 'w', encoding
='utf-8') as outf
:
24 outf
.write(f
'# Supported sites\n{out}\n')
27 if __name__
== '__main__':