浏览代码

fix: error in INITIALIZE_STATION job

Kristian Vos 1 年之前
父节点
当前提交
a897098628
共有 1 个文件被更改,包括 2 次插入0 次删除
  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(