2021-06-03 05:43:42 -04:00
|
|
|
#!/usr/bin/env python3
|
2022-06-24 07:06:16 -04:00
|
|
|
|
|
|
|
# Allow direct execution
|
2014-12-30 13:35:35 -05:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
2022-05-09 07:54:28 -04:00
|
|
|
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
|
2022-06-24 07:06:16 -04:00
|
|
|
|
2022-08-08 15:38:47 -04:00
|
|
|
from devscripts.utils import get_filename_args, write_file
|
2022-05-11 11:54:44 -04:00
|
|
|
from yt_dlp.extractor import list_extractor_classes
|
2014-12-30 13:35:35 -05:00
|
|
|
|
|
|
|
|
|
|
|
def main():
|
2022-05-11 11:54:44 -04:00
|
|
|
out = '\n'.join(ie.description() for ie in list_extractor_classes() if ie.IE_DESC is not False)
|
2022-08-08 15:38:47 -04:00
|
|
|
write_file(get_filename_args(), f'# Supported sites\n{out}\n')
|
2014-12-30 13:35:35 -05:00
|
|
|
|
2016-11-17 06:42:56 -05:00
|
|
|
|
2014-12-30 13:35:35 -05:00
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|