Skip to content

Commit

Permalink
[Feature] device name should be passed in enclosing quotes #67 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
GioF71 authored Jun 23, 2023
1 parent 6f12df2 commit df58c63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ SPOTIFY_PASSWORD||Your Spotify password.
BITRATE|160|Bitrate (kbps): `96`, `160`, `320`. Defaults to `160`.
BACKEND|alsa|Audio backend to use. Use `?` to list options. Currently possible values are `alsa` and `pulseaudio`.
INITIAL_VOLUME||Initial volume in % from 0-100. Default for softvol: `50`. For the `alsa` mixer: the current volume.
DEVICE_NAME||Device name.
DEVICE_NAME||Device name (spaces allowed).
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`.
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.
FORMAT|S16|Output format: `F64`, `F32`, `S32`, `S24`, `S24_3`, `S16`. Defaults to `S16`.
Expand Down Expand Up @@ -338,6 +338,7 @@ Just be careful to use the tag you have built.

Change Date|Major Changes
---|---
2023-06-23|Pass device name in quotes (see [#67](https://github.com/GioF71/librespot-docker/issues/67))
2023-06-23|Daily builds update `latest` images
2023-06-23|Add support for `bookworm`
2023-05-13|Routine rebuild
Expand Down
2 changes: 1 addition & 1 deletion app/bin/run-librespot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ if [ -n "$INITIAL_VOLUME" ]; then
fi

if [ -n "$DEVICE_NAME" ]; then
CMD_LINE="$CMD_LINE --name $DEVICE_NAME"
CMD_LINE="$CMD_LINE --name '$DEVICE_NAME'"
fi

if [ -n "$DEVICE_TYPE" ]; then
Expand Down

0 comments on commit df58c63

Please sign in to comment.