mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-01 17:23:48 +01:00
[youtube:search_url] Fix extraction (Closes #5155)
This commit is contained in:
parent
14137b5781
commit
98998cded6
@ -1532,7 +1532,7 @@ def _real_extract(self, url):
|
||||
|
||||
webpage = self._download_webpage(url, query)
|
||||
result_code = self._search_regex(
|
||||
r'(?s)<ol class="item-section"(.*?)</ol>', webpage, 'result HTML')
|
||||
r'(?s)<ol[^>]+class="item-section"(.*?)</ol>', webpage, 'result HTML')
|
||||
|
||||
part_codes = re.findall(
|
||||
r'(?s)<h3 class="yt-lockup-title">(.*?)</h3>', result_code)
|
||||
|
Loading…
Reference in New Issue
Block a user