mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-28 15:46:54 +01:00
[kuwo] extract title inside element with class title exactly
This commit is contained in:
parent
c44c7895b8
commit
3d09aa4c82
@ -79,7 +79,7 @@ def _real_extract(self, url):
|
|||||||
errnote='Unable to get song detail info')
|
errnote='Unable to get song detail info')
|
||||||
|
|
||||||
song_name = self._html_search_regex(
|
song_name = self._html_search_regex(
|
||||||
r'(?s)class="[^"]*title[^"]*".*?<h1[^>]+title="([^"]+)"', webpage, 'song name')
|
r'(?s)class="(?:[^" ]+ +)*title(?: +[^" ]+)*".*?<h1[^>]+title="([^"]+)"', webpage, 'song name')
|
||||||
singer_name = self._html_search_regex(
|
singer_name = self._html_search_regex(
|
||||||
r'<div[^>]+class="s_img">\s*<a[^>]+title="([^>]+)"',
|
r'<div[^>]+class="s_img">\s*<a[^>]+title="([^>]+)"',
|
||||||
webpage, 'singer name', fatal=False)
|
webpage, 'singer name', fatal=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user