diff options
author | remitamine <remitamine@gmail.com> | 2015-09-25 11:40:32 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2015-09-25 11:40:32 +0100 |
commit | 3d09aa4c82100649279d979f9910a8c84ba301ff (patch) | |
tree | 9d1da77fbcba445825614d72314ec898c201ed9f /youtube_dl/extractor | |
parent | c44c7895b8774fb819b0b664bfcf64a7ebeea4e8 (diff) |
[kuwo] extract title inside element with class title exactly
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/kuwo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/kuwo.py b/youtube_dl/extractor/kuwo.py index 51137a982..a3c260838 100644 --- a/youtube_dl/extractor/kuwo.py +++ b/youtube_dl/extractor/kuwo.py @@ -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) |