mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 03:03:01 +00:00
[qqmusic:toplist] List name and description are optional
This commit is contained in:
parent
168db222c6
commit
9d4f213f90
1 changed files with 3 additions and 2 deletions
|
@ -222,6 +222,7 @@ def _real_extract(self, url):
|
||||||
) for song in toplist_json['songlist']
|
) for song in toplist_json['songlist']
|
||||||
]
|
]
|
||||||
|
|
||||||
list_name = toplist_json['topinfo']['ListName']
|
topinfo = toplist_json.get('topinfo', {})
|
||||||
list_description = toplist_json['topinfo']['info']
|
list_name = topinfo.get('ListName')
|
||||||
|
list_description = topinfo.get('info')
|
||||||
return self.playlist_result(entries, list_id, list_name, list_description)
|
return self.playlist_result(entries, list_id, list_name, list_description)
|
||||||
|
|
Loading…
Reference in a new issue