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

index f9aafcd2894d178fc62e9a3c956c1b5cba1dd371..d6bc05b7b24d8536429a8fb4999a3b0292b997f1 100644 (file)
@@ -274,6 +274,6 @@ class QQMusicPlaylistIE(QQPlaylistBaseIE):
             ) for song in list_json['songlist']
         ]
 
-        list_name = list_json['dissname']
+        list_name = list_json.get('dissname')
         list_description = clean_html(unescapeHTML(list_json.get('desc')))
         return self.playlist_result(entries, list_id, list_name, list_description)