Skip to content

Commit df58c63

Browse files
authored
[Feature] device name should be passed in enclosing quotes #67 (#68)
1 parent 6f12df2 commit df58c63

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ SPOTIFY_PASSWORD||Your Spotify password.
6565
BITRATE|160|Bitrate (kbps): `96`, `160`, `320`. Defaults to `160`.
6666
BACKEND|alsa|Audio backend to use. Use `?` to list options. Currently possible values are `alsa` and `pulseaudio`.
6767
INITIAL_VOLUME||Initial volume in % from 0-100. Default for softvol: `50`. For the `alsa` mixer: the current volume.
68-
DEVICE_NAME||Device name.
68+
DEVICE_NAME||Device name (spaces allowed).
6969
DEVICE_TYPE|speaker|Displayed device type: `computer`, `tablet`, `smartphone`, `speaker`, `tv`, `avr` (Audio/Video Receiver), `stb` (Set-Top Box), `audiodongle`, `gameconsole`, `castaudio`, `castvideo`, `automobile`, `smartwatch`, `chromebook`, `carthing`, `homething`. Defaults to `speaker`.
7070
DEVICE||Audio device to use. Use `?` to list options if using `alsa`, `portaudio` or `rodio`. Enter the path to the output when using `pipe`. Defaults to the backend's default.
7171
FORMAT|S16|Output format: `F64`, `F32`, `S32`, `S24`, `S24_3`, `S16`. Defaults to `S16`.
@@ -338,6 +338,7 @@ Just be careful to use the tag you have built.
338338

339339
Change Date|Major Changes
340340
---|---
341+
2023-06-23|Pass device name in quotes (see [#67](https://github.com/GioF71/librespot-docker/issues/67))
341342
2023-06-23|Daily builds update `latest` images
342343
2023-06-23|Add support for `bookworm`
343344
2023-05-13|Routine rebuild

app/bin/run-librespot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ if [ -n "$INITIAL_VOLUME" ]; then
9494
fi
9595

9696
if [ -n "$DEVICE_NAME" ]; then
97-
CMD_LINE="$CMD_LINE --name $DEVICE_NAME"
97+
CMD_LINE="$CMD_LINE --name '$DEVICE_NAME'"
9898
fi
9999

100100
if [ -n "$DEVICE_TYPE" ]; then

0 commit comments

Comments
 (0)