Rename BONOB_STREAM_CUSTOM_CLIENTS to BONOB_NAVIDROME_CUSTOM_CLIENTS

This commit is contained in:
simojenki
2021-04-20 14:02:41 +10:00
parent d3d83df03c
commit 60603df166
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ BONOB_SONOS_SEED_HOST | undefined | sonos device seed host for discovery, or omm
BONOB_SONOS_SERVICE_NAME | bonob | service name for sonos
BONOB_SONOS_SERVICE_ID | 246 | service id for sonos
BONOB_NAVIDROME_URL | http://localhost:4533 | URL for navidrome
BONOB_STREAM_CUSTOM_CLIENTS | undefined | Comma delimeted mime types for custom clients when streaming. ie. "audio/flac,audio/ogg" would use client = 'bonob+audio/flac' for flacs, and 'bonob+audio/ogg' for oggs.
BONOB_NAVIDROME_CUSTOM_CLIENTS | undefined | Comma delimeted mime types for custom navidrome clients when streaming. ie. "audio/flac,audio/ogg" would use client = 'bonob+audio/flac' for flacs, and 'bonob+audio/ogg' for oggs.
## Initialising service within sonos app

View File

@@ -33,7 +33,7 @@ if (process.env["BONOB_SONOS_AUTO_REGISTER"] == "true") {
});
}
const customClientsFor = process.env["BONOB_STREAM_CUSTOM_CLIENTS"] || "none";
const customClientsFor = process.env["BONOB_NAVIDROME_CUSTOM_CLIENTS"] || "none";
const streamUserAgent =
customClientsFor == "none" ? DEFAULT : appendMimeTypeToClientFor(customClientsFor.split(","));