mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-13 14:37:43 +01:00
[vevo] Simplify artists extraction
This commit is contained in:
parent
8b27d83e4e
commit
e94eeb1dd3
@ -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':
|
||||
if curr_artist.get('role') == 'Featured':
|
||||
featured_artist = curr_artist['name']
|
||||
elif curr_artist['role'] == 'Main':
|
||||
artist = uploader = 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:
|
||||
|
Loading…
Reference in New Issue
Block a user