aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/kuwo.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-05-03 16:06:28 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-05-03 16:06:28 +0800
commita0a309b9734ea3d5f66d4a52e42f5cc24df7f808 (patch)
treec4955282906f315b7b8b395730499b5309c3b9b0 /youtube_dl/extractor/kuwo.py
parent6c52a86f54b230a3f08dd10a89f55b8af4d98ee3 (diff)
[kuwo:category] Fix description and update test
Diffstat (limited to 'youtube_dl/extractor/kuwo.py')
-rw-r--r--youtube_dl/extractor/kuwo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/kuwo.py b/youtube_dl/extractor/kuwo.py
index 3740869c7..616ed19e1 100644
--- a/youtube_dl/extractor/kuwo.py
+++ b/youtube_dl/extractor/kuwo.py
@@ -266,7 +266,6 @@ class KuwoCategoryIE(InfoExtractor):
'info_dict': {
'id': '86375',
'title': '八十年代精选',
- 'description': '这些都是属于八十年代的回忆!',
},
'playlist_mincount': 24,
}
@@ -283,6 +282,8 @@ class KuwoCategoryIE(InfoExtractor):
category_desc = remove_start(
get_element_by_id('intro', webpage).strip(),
'%s简介:' % category_name)
+ if category_desc == '暂无':
+ category_desc = None
jsonm = self._parse_json(self._html_search_regex(
r'var\s+jsonm\s*=\s*([^;]+);', webpage, 'category songs'), category_id)