mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-15 12:21:47 +00:00
add album to lastfm if available
This commit is contained in:
@ -89,6 +89,7 @@ const postSongDataToAPI = async (songInfo, config, data) => {
|
|||||||
track: songInfo.title,
|
track: songInfo.title,
|
||||||
duration: songInfo.songDuration,
|
duration: songInfo.songDuration,
|
||||||
artist: songInfo.artist,
|
artist: songInfo.artist,
|
||||||
|
...(songInfo.album ? { album: songInfo.album } : undefined), // will be undefined if current song is a video
|
||||||
api_key: config.api_key,
|
api_key: config.api_key,
|
||||||
sk: config.session_key,
|
sk: config.session_key,
|
||||||
format: 'json',
|
format: 'json',
|
||||||
|
|||||||
Reference in New Issue
Block a user