aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-11-24 23:09:35 +0700
committerSergey M․ <dstftw@gmail.com>2016-11-24 23:09:35 +0700
commite94eeb1dd3e3171e6409313c619b248da0dd4886 (patch)
tree17b7acd8256c0f6f66427f5589da457cde734df1
parent8b27d83e4e07064898c5ec842e916c84cf7a1826 (diff)
downloadyoutube-dl-e94eeb1dd3e3171e6409313c619b248da0dd4886.tar.xz
[vevo] Simplify artists extraction
-rw-r--r--youtube_dl/extractor/vevo.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py
index ce607945f..5aa097885 100644
--- a/youtube_dl/extractor/vevo.py
+++ b/youtube_dl/extractor/vevo.py
@@ -259,14 +259,10 @@ class VevoIE(VevoBaseIE):
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: