]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[qqmusic:album] Playlist names are optional
authorYen Chi Hsuan <yan12125@gmail.com>
Mon, 6 Jul 2015 09:09:17 +0000 (17:09 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Mon, 6 Jul 2015 09:09:17 +0000 (17:09 +0800)
youtube_dl/extractor/qqmusic.py

index 6d85d58e37c264226580b1140d4199d8df372c48..03e6c688f870d4dec3c57445497233409ef09e51 100644 (file)
@@ -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()