Explorar o código

fix: error in INITIALIZE_STATION job

Kristian Vos hai 1 ano
pai
achega
a897098628
Modificáronse 1 ficheiros con 2 adicións e 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(