From e94eeb1dd3e3171e6409313c619b248da0dd4886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Thu, 24 Nov 2016 23:09:35 +0700 Subject: [PATCH] [vevo] Simplify artists extraction --- youtube_dl/extractor/vevo.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py index ce607945ff..5aa0978851 100644 --- a/youtube_dl/extractor/vevo.py +++ b/youtube_dl/extractor/vevo.py @@ -259,14 +259,10 @@ def _real_extract(self, url): timestamp = parse_iso8601(video_info.get('releaseDate')) artists = video_info.get('artists') for curr_artist in artists: - if 'role' in curr_artist: - if curr_artist['role'] == 'Featured': - featured_artist = curr_artist['name'] - elif curr_artist['role'] == 'Main': - artist = uploader = curr_artist['name'] + if curr_artist.get('role') == 'Featured': + featured_artist = curr_artist['name'] else: artist = uploader = curr_artist['name'] - break view_count = int_or_none(video_info.get('views', {}).get('total')) for video_version in video_versions: