Sfoglia il codice sorgente

fix: error in INITIALIZE_STATION job

Kristian Vos 1 anno fa
parent
commit
a897098628
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      backend/logic/stations.js

+ 2 - 0
backend/logic/stations.js

@@ -316,9 +316,11 @@ class _StationsModule extends CoreClass {
 						if (
 							!station.currentSong ||
 							(!config.get("experimental.soundcloud") &&
+								station.currentSong.mediaSource &&
 								(station.currentSong.mediaSource.startsWith("soundcloud:") ||
 									station.currentSong.mediaSource.indexOf("soundcloud.com") !== -1)) ||
 							(!config.get("experimental.spotify") &&
+								station.currentSong.mediaSource &&
 								station.currentSong.mediaSource.startsWith("spotify:"))
 						) {
 							return StationsModule.runJob(