aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/kuwo.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/kuwo.py')
-rw-r--r--youtube_dl/extractor/kuwo.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/kuwo.py b/youtube_dl/extractor/kuwo.py
index 3740869c7..11b31a699 100644
--- a/youtube_dl/extractor/kuwo.py
+++ b/youtube_dl/extractor/kuwo.py
@@ -283,6 +283,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)