aboutsummaryrefslogtreecommitdiffstats
path: root/devscripts
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-10-31 11:36:52 -0500
committerJesús <heckyel@hyperbola.info>2021-10-31 11:36:52 -0500
commit5bb25093eb718346ab8a723d2c04f0066fc3958a (patch)
tree8a7fa5611895a933eaf1ef1623f7b9e1a1c36157 /devscripts
parentc7afb25e19a91493db6069d1db9f7d1bc8491dc1 (diff)
parent652fb0d446524af4b783276babd55f5fc6a3afeb (diff)
downloadhypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.tar.lz
hypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.tar.xz
hypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.zip
updated from upstream | 31/10/2021 at 11:36
Diffstat (limited to 'devscripts')
-rw-r--r--devscripts/make_lazy_extractors.py2
-rw-r--r--devscripts/make_supportedsites.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/devscripts/make_lazy_extractors.py b/devscripts/make_lazy_extractors.py
index 427045b98..0411df76b 100644
--- a/devscripts/make_lazy_extractors.py
+++ b/devscripts/make_lazy_extractors.py
@@ -9,7 +9,7 @@ import sys
sys.path.insert(0, dirn(dirn((os.path.abspath(__file__)))))
-lazy_extractors_filename = sys.argv[1]
+lazy_extractors_filename = sys.argv[1] if len(sys.argv) > 1 else 'yt_dlp/extractor/lazy_extractors.py'
if os.path.exists(lazy_extractors_filename):
os.remove(lazy_extractors_filename)
diff --git a/devscripts/make_supportedsites.py b/devscripts/make_supportedsites.py
index 17a34843f..4c11e25f2 100644
--- a/devscripts/make_supportedsites.py
+++ b/devscripts/make_supportedsites.py
@@ -29,6 +29,9 @@ def main():
continue
if ie_desc is not None:
ie_md += ': {0}'.format(ie.IE_DESC)
+ search_key = getattr(ie, 'SEARCH_KEY', None)
+ if search_key is not None:
+ ie_md += f'; "{ie.SEARCH_KEY}:" prefix'
if not ie.working():
ie_md += ' (Currently broken)'
yield ie_md