From 840efd57871c6f6598a1cc1f664abe07b431fc35 Mon Sep 17 00:00:00 2001 From: Lucas Date: Tue, 13 Aug 2019 12:46:06 +0200 Subject: [PATCH] [DeezerPlaylist] Coding convention --- youtube_dl/extractor/deezer.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/youtube_dl/extractor/deezer.py b/youtube_dl/extractor/deezer.py index 458b89b75..3a7e7d5b0 100644 --- a/youtube_dl/extractor/deezer.py +++ b/youtube_dl/extractor/deezer.py @@ -45,29 +45,29 @@ def _real_extract(self, url): webpage, 'data JSON') data = json.loads(data_json) - playlist_title = data['DATA']['TITLE'] - playlist_uploader = data['DATA']['PARENT_USERNAME'] + playlist_title = data.get('DATA').get('TITLE') + playlist_uploader = data.get('DATA').get('PARENT_USERNAME') playlist_thumbnail = self._search_regex( r'