浏览代码

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);