From 297f60e62c4b799bc58257813ffce452a60a250a Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 12 Aug 2019 17:50:03 +0200 Subject: [PATCH] [DeezerPlaylist] Update to new website --- youtube_dl/extractor/deezer.py | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/youtube_dl/extractor/deezer.py b/youtube_dl/extractor/deezer.py index a38b2683d..458b89b75 100644 --- a/youtube_dl/extractor/deezer.py +++ b/youtube_dl/extractor/deezer.py @@ -18,11 +18,10 @@ class DeezerPlaylistIE(InfoExtractor): 'info_dict': { 'id': '176747451', 'title': 'Best!', - 'uploader': 'Anonymous', - 'thumbnail': r're:^https?://cdn-images\.deezer\.com/images/cover/.*\.jpg$', + 'uploader': 'anonymous', + 'thumbnail': r're:^https?://e-cdns-images\.dzcdn\.net/images/cover/.*\.jpg$', }, - 'playlist_count': 30, - 'skip': 'Only available in .de', + 'playlist_count': 29, } def _real_extract(self, url): @@ -46,25 +45,17 @@ def _real_extract(self, url): webpage, 'data JSON') data = json.loads(data_json) - playlist_title = data.get('DATA', {}).get('TITLE') - playlist_uploader = data.get('DATA', {}).get('PARENT_USERNAME') + playlist_title = data['DATA']['TITLE'] + playlist_uploader = data['DATA']['PARENT_USERNAME'] playlist_thumbnail = self._search_regex( r'