Procházet zdrojové kódy

Fixed issue with playlist mode

Kristian Vos před 4 roky
rodič
revize
c4d7280ce1
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  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) => {