mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-25 02:51:57 +01:00
✨ Add playing attribute for track
This commit is contained in:
parent
091ca0b65f
commit
28a32033c4
@ -129,7 +129,9 @@ export class Playlist {
|
||||
this.activeTrackIndex = 0;
|
||||
}
|
||||
|
||||
this.eventEmitter.emit('internal.audio.announce', this.getActiveTrack());
|
||||
const activeTrack = this.getActiveTrack();
|
||||
activeTrack.playing = true;
|
||||
this.eventEmitter.emit('internal.audio.announce', activeTrack);
|
||||
}
|
||||
|
||||
private isActiveTrackOutOfSync(): boolean {
|
||||
|
@ -27,6 +27,8 @@ export class Track {
|
||||
*/
|
||||
remoteImages?: RemoteImageResult;
|
||||
|
||||
playing: boolean;
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
name: string,
|
||||
|
Loading…
Reference in New Issue
Block a user