Fix some tracklisting trackid 0
This commit is contained in:
parent
fbc88e14e8
commit
03146644c2
1 changed files with 3 additions and 1 deletions
|
@ -388,8 +388,10 @@ export const load = (
|
||||||
dispatch(
|
dispatch(
|
||||||
mixerState.actions.setPlayerState({ player, state: "stopped" })
|
mixerState.actions.setPlayerState({ player, state: "stopped" })
|
||||||
);
|
);
|
||||||
console.log(dispatch(BroadcastState.tracklistEnd(0)));
|
|
||||||
const state = getState().mixer.players[player];
|
const state = getState().mixer.players[player];
|
||||||
|
if (state.tracklistItemID !== -1) {
|
||||||
|
dispatch(BroadcastState.tracklistEnd(state.tracklistItemID));
|
||||||
|
}
|
||||||
if (state.repeat === "one") {
|
if (state.repeat === "one") {
|
||||||
wavesurfer.play();
|
wavesurfer.play();
|
||||||
} else if (state.repeat === "all") {
|
} else if (state.repeat === "all") {
|
||||||
|
|
Loading…
Reference in a new issue