Sfoglia il codice sorgente

Fixed issue with currently playing with queue songs

Kristian Vos 4 anni fa
parent
commit
cc2363f041
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 5 4
      backend/logic/stations.js

+ 5 - 4
backend/logic/stations.js

@@ -602,10 +602,10 @@ class _StationsModule extends CoreClass {
 						}
 					},
 
-					(song, next) => {
-						if (!song._id) next(null, song);
+					(queueSong, next) => {
+						if (!queueSong._id) next(null, queueSong);
 						else
-							SongsModule.runJob("GET_SONG", { id: song._id }, this)
+							SongsModule.runJob("GET_SONG", { id: queueSong._id }, this)
 								.then(response => {
 									const { song } = response;
 
@@ -616,8 +616,9 @@ class _StationsModule extends CoreClass {
 											title: song.title,
 											artists: song.artists,
 											duration: song.duration,
+											skipDuration: song.skipDuration,
 											thumbnail: song.thumbnail,
-											requestedAt: song.requestedAt,
+											requestedAt: queueSong.requestedAt,
 											likes: song.likes,
 											dislikes: song.dislikes,
 											verified: song.verified