From 8b8b6efba48349f26b59844e829febe83c83af9c Mon Sep 17 00:00:00 2001 From: sepro Date: Sun, 16 Feb 2025 17:25:51 +0100 Subject: [PATCH] [docs] Add note to `supportedsites.md` --- devscripts/make_supportedsites.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/devscripts/make_supportedsites.py b/devscripts/make_supportedsites.py index 01548ef97..7178978f0 100644 --- a/devscripts/make_supportedsites.py +++ b/devscripts/make_supportedsites.py @@ -10,10 +10,20 @@ 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 part of yt-dlp. +If a site is not listed here, it might still be supported by yt-dlp due to embed extraction or the generic extractor. +Not all sites listed here are guaranteed to work. If websites change the extractor might stop working. +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__':