aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/kuwo.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-09-25 11:40:32 +0100
committerremitamine <remitamine@gmail.com>2015-09-25 11:40:32 +0100
commit3d09aa4c82100649279d979f9910a8c84ba301ff (patch)
tree9d1da77fbcba445825614d72314ec898c201ed9f /youtube_dl/extractor/kuwo.py
parentc44c7895b8774fb819b0b664bfcf64a7ebeea4e8 (diff)
downloadyoutube-dl-3d09aa4c82100649279d979f9910a8c84ba301ff.zip
youtube-dl-3d09aa4c82100649279d979f9910a8c84ba301ff.tar.gz
youtube-dl-3d09aa4c82100649279d979f9910a8c84ba301ff.tar.bz2
[kuwo] extract title inside element with class title exactly
Diffstat (limited to 'youtube_dl/extractor/kuwo.py')
-rw-r--r--youtube_dl/extractor/kuwo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/kuwo.py b/youtube_dl/extractor/kuwo.py
index 51137a9..a3c2608 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)