Music list extraction: read from SONG field

This one is used when there is no corresponding YouTube video
for the track
This commit is contained in:
Jesus E 2023-05-28 21:45:20 -04:00
parent ec8f652bc8
commit 74907a8183
No known key found for this signature in database
GPG Key ID: 159C8F8BC9AED8B6

View File

@ -250,7 +250,9 @@ def _extract_from_music_renderer(renderer_content):
row = row.get('infoRowRenderer', {})
title = extract_str(row.get('title'))
data = extract_str(row.get('defaultMetadata'))
if title == 'ARTIST':
if title == 'SONG':
song['title'] = data
elif title == 'ARTIST':
song['artist'] = data
elif title == 'ALBUM':
song['album'] = data