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