From 4d3c82222c3249726d9a5b2f06ce2bf9ade9c742 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sun, 18 Aug 2019 23:58:49 +0200 Subject: [PATCH] flake8 corrections --- youtube_dl/extractor/deezer.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/youtube_dl/extractor/deezer.py b/youtube_dl/extractor/deezer.py index 7409551d1..bf4204459 100644 --- a/youtube_dl/extractor/deezer.py +++ b/youtube_dl/extractor/deezer.py @@ -10,8 +10,8 @@ orderedSet, ) -class DeezerBaseInfoExtractor(InfoExtractor): +class DeezerBaseInfoExtractor(InfoExtractor): def get_data(self, url): if not self._downloader.params.get('test'): self._downloader.report_warning('For now, this extractor only supports the 30 second previews. Patches welcome!') @@ -34,6 +34,7 @@ def get_data(self, url): data = json.loads(data_json) return id, webpage, data + class DeezerPlaylistIE(DeezerBaseInfoExtractor): _VALID_URL = r'https?://(?:www\.)?deezer\.com/(../)?playlist/(?P[0-9]+)' _TEST = { @@ -86,6 +87,7 @@ def _real_extract(self, url): 'entries': entries, } + class DeezerAlbumIE(DeezerBaseInfoExtractor): _VALID_URL = r'https?://(?:www\.)?deezer\.com/(../)?album/(?P[0-9]+)' _TEST = { @@ -127,13 +129,12 @@ def _real_extract(self, url): 'uploader_id': s.get('ART_ID'), 'age_limit': 16 if s.get('EXPLICIT_LYRICS') == '1' else 0, 'formats': formats, - 'track' : s.get('SNG_TITLE'), - 'track_number' : int(s.get('TRACK_NUMBER')), - 'track_id' : s.get('SNG_ID'), - 'artist' : album_uploader, - 'album' : album_title, - 'album_artist' : album_uploader, - + 'track': s.get('SNG_TITLE'), + 'track_number': int(s.get('TRACK_NUMBER')), + 'track_id': s.get('SNG_ID'), + 'artist': album_uploader, + 'album': album_title, + 'album_artist': album_uploader, }) return { @@ -143,4 +144,4 @@ def _real_extract(self, url): 'uploader': album_uploader, 'thumbnail': album_thumbnail, 'entries': entries, - } \ No newline at end of file + }