Explorar o código

Fixed issue with playlist mode

Kristian Vos %!s(int64=4) %!d(string=hai) anos
pai
achega
c4d7280ce1
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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) => {