From 3d586c09b246352f11776b1287cba96d645756a1 Mon Sep 17 00:00:00 2001 From: Tithen-Firion Date: Fri, 28 Apr 2017 02:42:12 +0200 Subject: [PATCH] [vevo] support multiple featured artists --- youtube_dl/extractor/vevo.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py index 890a149ea..19cf34a6b 100644 --- a/youtube_dl/extractor/vevo.py +++ b/youtube_dl/extractor/vevo.py @@ -214,13 +214,14 @@ class VevoIE(VevoBaseIE): uploader = None artist = None - featured_artist = None + featured_artists = [] artists = video_info.get('artists') for curr_artist in artists: if curr_artist.get('role') == 'Featured': - featured_artist = curr_artist['name'] + featured_artists.append(curr_artist['name']) else: artist = uploader = curr_artist['name'] + featured_artists.sort() formats = [] for video_version in video_versions: @@ -269,8 +270,8 @@ class VevoIE(VevoBaseIE): self._sort_formats(formats) track = video_info['title'] - if featured_artist: - artist = '%s ft. %s' % (artist, featured_artist) + if len(featured_artists) > 0: + artist = '%s ft. %s' % (artist, ' & '.join(featured_artists)) title = '%s - %s' % (artist, track) if artist else track genres = video_info.get('genres')