mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 04:41:47 +00:00
add songInfo.album
This commit is contained in:
@ -11,7 +11,8 @@ const data = {
|
||||
status: '',
|
||||
progress: 0,
|
||||
duration: 0,
|
||||
album_url: ''
|
||||
album_url: '',
|
||||
album: undefined
|
||||
};
|
||||
|
||||
const post = async (data) => {
|
||||
@ -44,7 +45,8 @@ module.exports = async () => {
|
||||
data.album_url = songInfo.imageSrc;
|
||||
data.title = songInfo.title;
|
||||
data.artists = [songInfo.artist];
|
||||
data.status = songInfo.isPaused ? 'Paused' : 'Playing';
|
||||
data.status = songInfo.isPaused ? 'stopped' : 'playing';
|
||||
data.album = songInfo.album;
|
||||
post(data);
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user