mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 03:11:46 +00:00
feat(tuna-obs): added alternativeTitle and tags to tuna (#3288)
thanks to 3206
This commit is contained in:
@ -16,7 +16,9 @@ interface Data {
|
|||||||
progress: number;
|
progress: number;
|
||||||
status: string;
|
status: string;
|
||||||
title: string;
|
title: string;
|
||||||
|
alternativeTitle: string;
|
||||||
url: string;
|
url: string;
|
||||||
|
tags: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export default createPlugin({
|
export default createPlugin({
|
||||||
@ -86,10 +88,12 @@ export default createPlugin({
|
|||||||
cover_url: songInfo.imageSrc ?? '',
|
cover_url: songInfo.imageSrc ?? '',
|
||||||
album_url: songInfo.imageSrc ?? '',
|
album_url: songInfo.imageSrc ?? '',
|
||||||
title: songInfo.title,
|
title: songInfo.title,
|
||||||
|
alternativeTitle: songInfo.alternativeTitle ?? '',
|
||||||
artists: [songInfo.artist],
|
artists: [songInfo.artist],
|
||||||
status: songInfo.isPaused ? 'stopped' : 'playing',
|
status: songInfo.isPaused ? 'stopped' : 'playing',
|
||||||
album: songInfo.album,
|
album: songInfo.album,
|
||||||
url: songInfo.url ?? '',
|
url: songInfo.url ?? '',
|
||||||
|
tags: songInfo.tags ?? [],
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user