aboutsummaryrefslogtreecommitdiffstats
path: root/devscripts/make_supportedsites.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-05-11 21:24:44 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-05-13 00:23:26 +0530
commit82d020804de938bb7e87bd6bbc4961757b892cd0 (patch)
tree6ef8184da2e2ebe93ea235df8d92b644470e8690 /devscripts/make_supportedsites.py
parent7ddbf09c2570d79baed8154e07ff7ee404ccc17c (diff)
downloadhypervideo-pre-82d020804de938bb7e87bd6bbc4961757b892cd0.tar.lz
hypervideo-pre-82d020804de938bb7e87bd6bbc4961757b892cd0.tar.xz
hypervideo-pre-82d020804de938bb7e87bd6bbc4961757b892cd0.zip
[extractor] Use classmethod/property where possible
and refactor lazy extractors accordingly. This reduces the need to create extractor instances
Diffstat (limited to 'devscripts/make_supportedsites.py')
-rw-r--r--devscripts/make_supportedsites.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/devscripts/make_supportedsites.py b/devscripts/make_supportedsites.py
index 5531fec4d..d8c53c5e1 100644
--- a/devscripts/make_supportedsites.py
+++ b/devscripts/make_supportedsites.py
@@ -5,7 +5,7 @@ import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-from yt_dlp.extractor import list_extractors
+from yt_dlp.extractor import list_extractor_classes
def main():
@@ -14,7 +14,7 @@ def main():
if len(args) != 1:
parser.error('Expected an output filename')
- out = '\n'.join(ie.description() for ie in list_extractors(None) if ie.IE_DESC is not False)
+ out = '\n'.join(ie.description() for ie in list_extractor_classes() if ie.IE_DESC is not False)
with open(args[0], 'w', encoding='utf-8') as outf:
outf.write(f'# Supported sites\n{out}\n')