From 3d09aa4c82100649279d979f9910a8c84ba301ff Mon Sep 17 00:00:00 2001 From: remitamine Date: Fri, 25 Sep 2015 11:40:32 +0100 Subject: [PATCH] [kuwo] extract title inside element with class title exactly --- youtube_dl/extractor/kuwo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[^"]*".*?]+title="([^"]+)"', webpage, 'song name') + r'(?s)class="(?:[^" ]+ +)*title(?: +[^" ]+)*".*?]+title="([^"]+)"', webpage, 'song name') singer_name = self._html_search_regex( r']+class="s_img">\s*]+title="([^>]+)"', webpage, 'singer name', fatal=False)