snapserver: Add librespot options (110)

- Add options to set librespot devicename and zeroconf-port
- Update addon meta information to rev 110
This commit is contained in:
cr3bs 2022-02-18 10:54:14 +01:00
parent 55b79b8ae3
commit b1856eca4d
6 changed files with 20 additions and 2 deletions

View File

@ -1,3 +1,6 @@
110
- Add options to set librespot devicename and zeroconf-port
109
- Add non-empty icons for snapweb
- Fix stream argument for snapserver

View File

@ -3,7 +3,7 @@
PKG_NAME="snapserver"
PKG_VERSION="0.26.0"
PKG_REV="109"
PKG_REV="110"
PKG_ARCH="any"
PKG_LICENSE="GPLv3"
PKG_DEPENDS_TARGET="toolchain shairport-sync snapcast"

View File

@ -32,7 +32,10 @@ case "$ss_st" in
stream="pipe://$file?name=Kodi"
;;
Spotify)
stream="spotify:///librespot?name=Spotify"
stream="spotify:///librespot?name=Spotify&devicename=$ss_ln"
if [ "$ss_lp" != 0 ]; then
stream="$stream&params=--zeroconf-port%3D$ss_lp"
fi
;;
*)
stream="airplay:///shairport-sync?name=AirPlay"

View File

@ -36,3 +36,11 @@ msgstr ""
msgctxt "#30007"
msgid "HTTP server bind address"
msgstr ""
msgctxt "#30008"
msgid "Librespot devicename"
msgstr ""
msgctxt "#30009"
msgid "Librespot zeroconf-port"
msgstr ""

View File

@ -5,6 +5,8 @@
<setting label="30002" type="number" id="ss_cp" default="1705"/>
<setting label="30003" type="slider" id="ss_ni" default="0" range="-20,1,19" option="int"/>
<setting label="30004" type="select" id="ss_st" values="AirPlay|Default|Kodi|Spotify"/>
<setting label="30008" type="text" id="ss_ln" subsetting="true" visible="eq(-1,Spotify)" default="Snapcast"/>
<setting label="30009" type="number" id="ss_lp" subsetting="true" visible="eq(-2,Spotify)" default="0"/>
<setting type="sep"/>
<setting label="30005" type="bool" id="ss_eh" default="false"/>
<setting label="30006" type="number" id="ss_hp" default="1780" visible="eq(-1,true)"/>

View File

@ -3,6 +3,8 @@
<setting id="ss_ni" default="true">0</setting>
<setting id="ss_sp" default="true">1704</setting>
<setting id="ss_st" default="true">AirPlay</setting>
<setting id="ss_ln" default="true">Snapcast</setting>
<setting id="ss_lp" default="true">0</setting>
<setting id="ss_eh" default="true">false</setting>
<setting id="ss_hp" default="true">1780</setting>
<setting id="ss_ha" default="true">0.0.0.0</setting>