Ver código fonte

Small fix for requesting orphaned playlist songs

Kristian Vos 4 anos atrás
pai
commit
c6d7a539fe
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      backend/logic/songs.js

+ 1 - 1
backend/logic/songs.js

@@ -496,7 +496,7 @@ class _SongsModule extends CoreClass {
 									(playlist, next) => {
 										playlist.songs.forEach(song => {
 											if (
-												songIds.indexOf(song._id.toString()) === -1 &&
+												(song._id && songIds.indexOf(song._id.toString()) === -1) ||
 												orphanedSongIds.indexOf(song.songId) === -1
 											) {
 												orphanedSongIds.push(song.songId);