1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-28 09:28:33 +00:00

Update yt_dlp/extractor/udio.py

Co-authored-by: D Trombett <d@trombett.org>
This commit is contained in:
Iuri Campos 2025-06-18 15:49:37 +01:00 committed by GitHub
parent eb3c7e8283
commit 1d91a11cea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,23 +81,13 @@ def _real_extract(self, url):
default=None, default=None,
) )
# If found, add lyrics to the entry
entry = {
'id': artist_id,
'title': title.strip(),
'url': audio_src,
}
if lyrics:
entry['lyrics'] = lyrics
return { return {
'_type': 'playlist',
'id': artist_id, 'id': artist_id,
'title': title.strip(), 'title': title.strip(),
'description': description, 'description': lyrics,
'uploader': artist_name.strip(), 'uploader': artist_name.strip(),
'uploader_url': f'https://udio.com/artist/{artist_name.strip()}', 'uploader_url': f'https://udio.com/artist/{artist_name.strip()}',
'entries': [entry], # Put the entry in an entries list 'url': audio_src,
} }