Browse Source
[kuwo:category] Fix description and update test
master
Yen Chi Hsuan
8 years ago
No known key found for this signature in database
GPG Key ID: 3FDDD575826C5C30
1 changed files with
2 additions and
1 deletions
-
youtube_dl/extractor/kuwo.py
|
@ -266,7 +266,6 @@ class KuwoCategoryIE(InfoExtractor): |
|
|
'info_dict': { |
|
|
'info_dict': { |
|
|
'id': '86375', |
|
|
'id': '86375', |
|
|
'title': '八十年代精选', |
|
|
'title': '八十年代精选', |
|
|
'description': '这些都是属于八十年代的回忆!', |
|
|
|
|
|
}, |
|
|
}, |
|
|
'playlist_mincount': 24, |
|
|
'playlist_mincount': 24, |
|
|
} |
|
|
} |
|
@ -283,6 +282,8 @@ class KuwoCategoryIE(InfoExtractor): |
|
|
category_desc = remove_start( |
|
|
category_desc = remove_start( |
|
|
get_element_by_id('intro', webpage).strip(), |
|
|
get_element_by_id('intro', webpage).strip(), |
|
|
'%s简介:' % category_name) |
|
|
'%s简介:' % category_name) |
|
|
|
|
|
if category_desc == '暂无': |
|
|
|
|
|
category_desc = None |
|
|
|
|
|
|
|
|
jsonm = self._parse_json(self._html_search_regex( |
|
|
jsonm = self._parse_json(self._html_search_regex( |
|
|
r'var\s+jsonm\s*=\s*([^;]+);', webpage, 'category songs'), category_id) |
|
|
r'var\s+jsonm\s*=\s*([^;]+);', webpage, 'category songs'), category_id) |
|
|