aboutsummaryrefslogtreecommitdiff
path: root/devscripts/make_supportedsites.py
diff options
context:
space:
mode:
authorsepro <sepro@sepr0.com>2025-02-19 03:27:49 +0100
committerGitHub <noreply@github.com>2025-02-19 02:27:49 +0000
commit01a63629a21781458dcbd38779898e117678f5ff (patch)
tree865b080ca5a5d1320c3f98e7c9950214129de836 /devscripts/make_supportedsites.py
parentbe69468752ff598cacee57bb80533deab2367a5d (diff)
[docs] Add note to `supportedsites.md` (#12382)
Authored by: seproDev
Diffstat (limited to 'devscripts/make_supportedsites.py')
-rw-r--r--devscripts/make_supportedsites.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/devscripts/make_supportedsites.py b/devscripts/make_supportedsites.py
index 01548ef97..145f6d47f 100644
--- a/devscripts/make_supportedsites.py
+++ b/devscripts/make_supportedsites.py
@@ -10,10 +10,21 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from devscripts.utils import get_filename_args, write_file
from yt_dlp.extractor import list_extractor_classes
+TEMPLATE = '''\
+# Supported sites
+
+Below is a list of all extractors that are currently included with yt-dlp.
+If a site is not listed here, it might still be supported by yt-dlp's embed extraction or generic extractor.
+Not all sites listed here are guaranteed to work; websites are constantly changing and sometimes this breaks yt-dlp's support for them.
+The only reliable way to check if a site is supported is to try it.
+
+{ie_list}
+'''
+
def main():
out = '\n'.join(ie.description() for ie in list_extractor_classes() if ie.IE_DESC is not False)
- write_file(get_filename_args(), f'# Supported sites\n{out}\n')
+ write_file(get_filename_args(), TEMPLATE.format(ie_list=out))
if __name__ == '__main__':