浏览代码

Fixed issue with playlist mode

Kristian Vos 4 年之前
父节点
当前提交
c4d7280ce1
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      backend/logic/stations.js

+ 5 - 1
backend/logic/stations.js

@@ -513,7 +513,11 @@ class _StationsModule extends CoreClass {
 								if (songsToAdd.length >= songsStillNeeded) return false;
 								return true;
 							});
-						next(null, [...currentSongs, ...songsToAdd]);
+						const newPlaylist = [...currentSongs, ...songsToAdd].map(song => {
+							if (!song._id) song._id = null;
+							return song;
+						});
+						next(null, newPlaylist);
 					},
 
 					(newPlaylist, next) => {