From: remitamine Date: Fri, 25 Sep 2015 10:40:32 +0000 (+0100) Subject: [kuwo] extract title inside element with class title exactly X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=3d09aa4c82100649279d979f9910a8c84ba301ff;p=youtube-dl [kuwo] extract title inside element with class title exactly --- 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)