Переглянути джерело

fix: mediaSource can't contain soundcloud.com

Kristian Vos 1 рік тому
батько
коміт
fd709ace18
2 змінених файлів з 1 додано та 4 видалено
  1. 0 1
      backend/logic/songs.js
  2. 1 3
      backend/logic/stations.js

+ 0 - 1
backend/logic/songs.js

@@ -1034,7 +1034,6 @@ class _SongsModule extends CoreClass {
 						const mediaSources = [];
 						if (!config.get("experimental.soundcloud")) {
 							mediaSources.push(/^soundcloud:/);
-							mediaSources.push(/.*soundcloud.com.*/);
 						}
 						if (!config.get("experimental.spotify")) {
 							mediaSources.push(/^spotify:/);

+ 1 - 3
backend/logic/stations.js

@@ -179,7 +179,6 @@ class _StationsModule extends CoreClass {
 						const mediaSources = [];
 						if (!config.get("experimental.soundcloud")) {
 							mediaSources.push(/^soundcloud:/);
-							mediaSources.push(/.*soundcloud.com.*/);
 						}
 						if (!config.get("experimental.spotify")) {
 							mediaSources.push(/^spotify:/);
@@ -317,8 +316,7 @@ class _StationsModule extends CoreClass {
 							!station.currentSong ||
 							(!config.get("experimental.soundcloud") &&
 								station.currentSong.mediaSource &&
-								(station.currentSong.mediaSource.startsWith("soundcloud:") ||
-									station.currentSong.mediaSource.indexOf("soundcloud.com") !== -1)) ||
+								station.currentSong.mediaSource.startsWith("soundcloud:")) ||
 							(!config.get("experimental.spotify") &&
 								station.currentSong.mediaSource &&
 								station.currentSong.mediaSource.startsWith("spotify:"))