Explorar el Código

fix: error in INITIALIZE_STATION job

Kristian Vos hace 1 año
padre
commit
a897098628
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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(