mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 08:34:32 +01:00
[youtube] Fixed 'next_link' regular expression
This commit is contained in:
parent
e8c5d40bc8
commit
68073607e0
@ -3213,7 +3213,7 @@ class YoutubeSearchIE(SearchInfoExtractor, YoutubeSearchBaseInfoExtractor):
|
|||||||
if not new_videos or len(videos) > limit:
|
if not new_videos or len(videos) > limit:
|
||||||
break
|
break
|
||||||
next_link = self._html_search_regex(
|
next_link = self._html_search_regex(
|
||||||
r'href="(/results\?[^"]*\bsp=[^"]+)"[^>]*>\s*<span[^>]+class="[^"]*\byt-uix-button-content\b[^"]*"[^>]*>Next',
|
r'href="(/results\?[^"]*\b(?:sp=[^"]+)?)"[^>]*>\s*<span[^>]+class="[^"]*\byt-uix-button-content\b[^"]*"[^>]*>Next',
|
||||||
html_content, 'next link', default=None)
|
html_content, 'next link', default=None)
|
||||||
if next_link is None:
|
if next_link is None:
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user