Quellcode durchsuchen

fix: error in INITIALIZE_STATION job

Kristian Vos vor 1 Jahr
Ursprung
Commit
a897098628
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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(