Quellcode durchsuchen

Fixed issue with playlist mode

Kristian Vos vor 4 Jahren
Ursprung
Commit
c4d7280ce1
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  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) => {