aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-10-23 19:59:52 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-10-23 21:20:19 +0530
commit96565c7e55bc3d97a1d4232fe974091dd45f5fe9 (patch)
tree5b6de2b3e755e09848bf3169384bd5854a59f1b7 /yt_dlp/extractor/common.py
parentec11a9f4a26e8225b195e5f91bd0b72b008d0c3a (diff)
downloadhypervideo-pre-96565c7e55bc3d97a1d4232fe974091dd45f5fe9.tar.lz
hypervideo-pre-96565c7e55bc3d97a1d4232fe974091dd45f5fe9.tar.xz
hypervideo-pre-96565c7e55bc3d97a1d4232fe974091dd45f5fe9.zip
[cleanup] Add keyword automatically to SearchIE descriptions
and some minor cleanup of docs
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index d1d1b46fc..c0d714249 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -3620,9 +3620,11 @@ class SearchInfoExtractor(InfoExtractor):
"""
Base class for paged search queries extractors.
They accept URLs in the format _SEARCH_KEY(|all|[0-9]):{query}
- Instances should define _SEARCH_KEY and _MAX_RESULTS.
+ Instances should define _SEARCH_KEY and optionally _MAX_RESULTS
"""
+ _MAX_RESULTS = float('inf')
+
@classmethod
def _make_valid_url(cls):
return r'%s(?P<prefix>|[1-9][0-9]*|all):(?P<query>[\s\S]+)' % cls._SEARCH_KEY