diff --git a/youtube_dl/extractor/deezer.py b/youtube_dl/extractor/deezer.py index 6a21f2ffa7..c5c7d6472f 100644 --- a/youtube_dl/extractor/deezer.py +++ b/youtube_dl/extractor/deezer.py @@ -85,3 +85,62 @@ class DeezerPlaylistIE(DeezerBaseInfoExtractor): 'thumbnail': playlist_thumbnail, 'entries': entries, } + +class DeezerAlbumIE(DeezerBaseInfoExtractor): + _VALID_URL = r'https?://(?:www\.)?deezer\.com/(../)?album/(?P[0-9]+)' + _TEST = { + 'url': 'https://www.deezer.com/fr/album/67505622', + 'info_dict': { + 'id': '67505622', + 'title': 'Last Week', + 'uploader': 'Home Brew', + 'thumbnail': r're:^https?://(e-)?cdns-images\.dzcdn\.net/images/cover/.*\.jpg$', + }, + 'playlist_count': 7, + } + + def _real_extract(self, url): + album_id, webpage, data = self.get_data(url) + + album_title = data.get('DATA').get('ALB_TITLE') + album_uploader = data.get('DATA').get('ART_NAME') + album_thumbnail = self._search_regex( + r'