mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
add transition to queue track list
This commit is contained in:
@@ -92,22 +92,26 @@ function updateQueue(track: Track) {
|
||||
|
||||
switch (routename) {
|
||||
case "FolderView":
|
||||
queue.playFromFolder(props.path, props.tracks);
|
||||
queue.playFromFolder(props.path || "", props.tracks);
|
||||
queue.play(index);
|
||||
break;
|
||||
case "AlbumView":
|
||||
const tindex = album.tracks.findIndex((t) => t.trackid === track.trackid);
|
||||
|
||||
queue.playFromAlbum(
|
||||
track.album,
|
||||
track.albumartist,
|
||||
track.albumhash,
|
||||
track.album || "",
|
||||
track.albumartist || "",
|
||||
track.albumhash || "",
|
||||
album.tracks
|
||||
);
|
||||
queue.play(tindex);
|
||||
break;
|
||||
case "PlaylistView":
|
||||
queue.playFromPlaylist(props.pname, props.playlistid, props.tracks);
|
||||
queue.playFromPlaylist(
|
||||
props.pname || "",
|
||||
props.playlistid || "",
|
||||
props.tracks
|
||||
);
|
||||
queue.play(index);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user