mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-29 17:57:44 +01:00
[cleanup] Add keyword automatically to SearchIE descriptions
and some minor cleanup of docs
This commit is contained in:
parent
ec11a9f4a2
commit
96565c7e55
14 changed files with 78 additions and 71 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue