mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[baidu] Improve playlist description
This commit is contained in:
parent
c579c5e967
commit
a1d9f6c5dc
1 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
from ..utils import unescapeHTML
|
||||||
|
|
||||||
|
|
||||||
class BaiduVideoIE(InfoExtractor):
|
class BaiduVideoIE(InfoExtractor):
|
||||||
|
@ -14,7 +15,7 @@ class BaiduVideoIE(InfoExtractor):
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '1069',
|
'id': '1069',
|
||||||
'title': '中华小当家 TV版国语',
|
'title': '中华小当家 TV版国语',
|
||||||
'description': 'md5:40a9c1b1c7f4e05d642e7bb1c84eeda0',
|
'description': 'md5:51be07afe461cf99fa61231421b5397c',
|
||||||
},
|
},
|
||||||
'playlist_count': 52,
|
'playlist_count': 52,
|
||||||
}, {
|
}, {
|
||||||
|
@ -40,7 +41,7 @@ def _real_extract(self, url):
|
||||||
playlist_detail = self._call_api('xqinfo', category, playlist_id)
|
playlist_detail = self._call_api('xqinfo', category, playlist_id)
|
||||||
|
|
||||||
playlist_title = playlist_detail['title']
|
playlist_title = playlist_detail['title']
|
||||||
playlist_description = playlist_detail.get('intro')
|
playlist_description = unescapeHTML(playlist_detail.get('intro'))
|
||||||
|
|
||||||
episodes_detail = self._call_api('xqsingle', category, playlist_id)
|
episodes_detail = self._call_api('xqsingle', category, playlist_id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue