[kuwo] extract title inside element with class title exactly

This commit is contained in:
remitamine 2015-09-25 11:40:32 +01:00
parent c44c7895b8
commit 3d09aa4c82
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class KuwoIE(KuwoBaseIE):
errnote='Unable to get song detail info')
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(
r'<div[^>]+class="s_img">\s*<a[^>]+title="([^>]+)"',
webpage, 'singer name', fatal=False)