mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-17 21:48:54 +00:00
Update yt_dlp/extractor/udio.py
Co-authored-by: D Trombett <d@trombett.org>
This commit is contained in:
@@ -81,23 +81,13 @@ class UdioIE(InfoExtractor):
|
|||||||
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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user