]>
Commit | Line | Data |
---|---|---|
cc52de43 | 1 | #!/usr/bin/env python3 |
54007a45 | 2 | |
3 | # Allow direct execution | |
416c7fcb PH |
4 | import os |
5 | import sys | |
6 | ||
0f06bcd7 | 7 | sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) |
8 | ||
54007a45 | 9 | |
115add43 | 10 | from devscripts.utils import get_filename_args, write_file |
82d02080 | 11 | from yt_dlp.extractor import list_extractor_classes |
416c7fcb PH |
12 | |
13 | ||
14 | def main(): | |
82d02080 | 15 | out = '\n'.join(ie.description() for ie in list_extractor_classes() if ie.IE_DESC is not False) |
115add43 | 16 | write_file(get_filename_args(), f'# Supported sites\n{out}\n') |
416c7fcb | 17 | |
582be358 | 18 | |
416c7fcb PH |
19 | if __name__ == '__main__': |
20 | main() |