From: Yen Chi Hsuan Date: Mon, 6 Jul 2015 09:09:17 +0000 (+0800) Subject: [qqmusic:album] Playlist names are optional X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=dfc4eca21f7d34b5e65f42b284b24077c8bbc109;p=youtube-dl [qqmusic:album] Playlist names are optional --- diff --git a/youtube_dl/extractor/qqmusic.py b/youtube_dl/extractor/qqmusic.py index 6d85d58e3..03e6c688f 100644 --- a/youtube_dl/extractor/qqmusic.py +++ b/youtube_dl/extractor/qqmusic.py @@ -194,7 +194,7 @@ class QQMusicAlbumIE(QQPlaylistBaseIE): 'http://y.qq.com/#type=song&mid=' + song['songmid'], 'QQMusic', song['songmid'] ) for song in album['list'] ] - album_name = album['name'] + album_name = album.get('name') album_detail = album.get('desc') if album_detail is not None: album_detail = album_detail.strip()