1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[qqmusic:toplist] List name and description are optional

This commit is contained in:
Yen Chi Hsuan 2015-06-05 00:52:18 +08:00
parent 168db222c6
commit 9d4f213f90

View file

@ -222,6 +222,7 @@ class QQMusicToplistIE(QQPlaylistBaseIE):
) 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)