mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-18 23:25:42 +07:00
[qqmusic:toplist] List name and description are optional
This commit is contained in:
@@ -222,6 +222,7 @@ def _real_extract(self, url):
|
||||
) for song in toplist_json['songlist']
|
||||
]
|
||||
|
||||
list_name = toplist_json['topinfo']['ListName']
|
||||
list_description = toplist_json['topinfo']['info']
|
||||
topinfo = toplist_json.get('topinfo', {})
|
||||
list_name = topinfo.get('ListName')
|
||||
list_description = topinfo.get('info')
|
||||
return self.playlist_result(entries, list_id, list_name, list_description)
|
||||
|
||||
Reference in New Issue
Block a user