Skip to content

Commit ecb3d29

Browse files
committed
Changed separator for mixers to semicolon
1 parent 54ed099 commit ecb3d29

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/main/java/xyz/gianlu/librespot/FileConfiguration.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ private static void migrateOldConfig(@NotNull File confFile, @NotNull FileConfig
113113
}
114114

115115
@NotNull
116-
private String[] getStringArray(@NotNull String key) {
116+
private String[] getStringArray(@NotNull String key, char separator) {
117117
String str = config.get(key);
118118
if ((str = str.trim()).isEmpty()) return new String[0];
119-
else return Utils.split(str, ',');
119+
else return Utils.split(str, separator);
120120
}
121121

122122
@NotNull
@@ -161,7 +161,7 @@ public float normalisationPregain() {
161161
@NotNull
162162
@Override
163163
public String[] mixerSearchKeywords() {
164-
return getStringArray("player.mixerSearchKeywords");
164+
return getStringArray("player.mixerSearchKeywords", ';');
165165
}
166166

167167
@Override
@@ -248,7 +248,7 @@ public int zeroconfListenPort() {
248248
@NotNull
249249
@Override
250250
public String[] zeroconfInterfaces() {
251-
return getStringArray("zeroconf.interfaces");
251+
return getStringArray("zeroconf.interfaces", ',');
252252
}
253253

254254
private final static class PropertiesFormat implements ConfigFormat<Config> {

core/src/main/resources/default.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ preferredAudioQuality = "VORBIS_160" # Preferred audio quality (VORBIS_96, VORBI
2626
normalisationPregain = 0.0 # Normalisation pregain
2727
initialVolume = 65536 # Initial volume (0-65536)
2828
logAvailableMixers = true # Log available mixers
29-
mixerSearchKeywords = "" # Mixer/backend search keywords
29+
mixerSearchKeywords = "" # Mixer/backend search keywords (semicolon separated)
3030
enableLoadingState = true # Enable loading state (useful for slow connections)
3131

3232
[player.tracks]

0 commit comments

Comments
 (0)