소스 검색

Small fix for requesting orphaned playlist songs

Kristian Vos 4 년 전
부모
커밋
c6d7a539fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);