mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-13 14:37:43 +01:00
[youtube:ytsearch] Temporary workaround (#5483)
This commit is contained in:
parent
5c1e6f69c4
commit
ed553379df
@ -1517,7 +1517,7 @@ def _get_n_results(self, query, n):
|
||||
while (PAGE_SIZE * pagenum) < limit:
|
||||
result_url = self._API_URL % (
|
||||
compat_urllib_parse.quote_plus(query.encode('utf-8')),
|
||||
(PAGE_SIZE * pagenum) + 1)
|
||||
max((PAGE_SIZE * pagenum) + 1), 2)
|
||||
data_json = self._download_webpage(
|
||||
result_url, video_id='query "%s"' % query,
|
||||
note='Downloading page %s' % (pagenum + 1),
|
||||
|
Loading…
Reference in New Issue
Block a user