mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
fix incorrect condition to try similar songs in autodj
This commit is contained in:
@@ -73,7 +73,8 @@ export const useAutoDJ = () => {
|
|||||||
let uniqueSimilarSongs: Song[] = [];
|
let uniqueSimilarSongs: Song[] = [];
|
||||||
|
|
||||||
const hasMusicFolder = server?.musicFolderId && server.musicFolderId.length > 0;
|
const hasMusicFolder = server?.musicFolderId && server.musicFolderId.length > 0;
|
||||||
const trySimilarSongs = hasMusicFolder && hasSimilarSongsMusicFolder;
|
const trySimilarSongs =
|
||||||
|
!hasMusicFolder || (hasMusicFolder && hasSimilarSongsMusicFolder);
|
||||||
|
|
||||||
// Skip similar songs fetch if a music folder is selected and does not support musicFolderId on similar songs
|
// Skip similar songs fetch if a music folder is selected and does not support musicFolderId on similar songs
|
||||||
if (trySimilarSongs) {
|
if (trySimilarSongs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user