diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-11-16 06:27:43 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-11-16 06:57:07 +0530 |
commit | 6368e2e639bca7e66609911d2672b6a9dc65b052 (patch) | |
tree | ad1f2fb77baf1213e245511f6edfc6072ab606c5 /devscripts | |
parent | a4894d3e25943c4ecf4f38c0d50ce592d2175f29 (diff) | |
download | hypervideo-pre-6368e2e639bca7e66609911d2672b6a9dc65b052.tar.lz hypervideo-pre-6368e2e639bca7e66609911d2672b6a9dc65b052.tar.xz hypervideo-pre-6368e2e639bca7e66609911d2672b6a9dc65b052.zip |
[cleanup] Misc
Closes #5541
Diffstat (limited to 'devscripts')
-rw-r--r-- | devscripts/lazy_load_template.py | 2 | ||||
-rw-r--r-- | devscripts/make_lazy_extractors.py | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/devscripts/lazy_load_template.py b/devscripts/lazy_load_template.py index 626b85d62..c8815e01b 100644 --- a/devscripts/lazy_load_template.py +++ b/devscripts/lazy_load_template.py @@ -10,7 +10,7 @@ from ..utils import ( ) # These bloat the lazy_extractors, so allow them to passthrough silently -ALLOWED_CLASSMETHODS = {'get_testcases', 'extract_from_webpage'} +ALLOWED_CLASSMETHODS = {'extract_from_webpage', 'get_testcases', 'get_webpage_testcases'} _WARNED = False diff --git a/devscripts/make_lazy_extractors.py b/devscripts/make_lazy_extractors.py index 2d4530eb9..c502bdf89 100644 --- a/devscripts/make_lazy_extractors.py +++ b/devscripts/make_lazy_extractors.py @@ -14,10 +14,17 @@ from devscripts.utils import get_filename_args, read_file, write_file NO_ATTR = object() STATIC_CLASS_PROPERTIES = [ - 'IE_NAME', 'IE_DESC', 'SEARCH_KEY', '_VALID_URL', '_WORKING', '_ENABLED', '_NETRC_MACHINE', 'age_limit' + 'IE_NAME', '_ENABLED', '_VALID_URL', # Used for URL matching + '_WORKING', 'IE_DESC', '_NETRC_MACHINE', 'SEARCH_KEY', # Used for --extractor-descriptions + 'age_limit', # Used for --age-limit (evaluated) + '_RETURN_TYPE', # Accessed in CLI only with instance (evaluated) ] CLASS_METHODS = [ - 'ie_key', 'working', 'description', 'suitable', '_match_valid_url', '_match_id', 'get_temp_id', 'is_suitable' + 'ie_key', 'suitable', '_match_valid_url', # Used for URL matching + 'working', 'get_temp_id', '_match_id', # Accessed just before instance creation + 'description', # Used for --extractor-descriptions + 'is_suitable', # Used for --age-limit + 'supports_login', 'is_single_video', # Accessed in CLI only with instance ] IE_TEMPLATE = ''' class {name}({bases}): |