librespot: Add new setting for zerconf port

This commit is contained in:
Alexander Koenig 2021-09-26 12:14:18 +02:00
parent 11a539837f
commit b5b722fab4
6 changed files with 18 additions and 7 deletions

View File

@ -1,3 +1,6 @@
129
- Python: add new setting for zeroconf port
128
- Python: fix Librespot output is utf-8

View File

@ -5,7 +5,7 @@
PKG_NAME="librespot"
PKG_VERSION="0.1.6"
PKG_SHA256="7506b4448d3ae0eba063cd711baebdc23444c706c87d0551d5a4cbc623e70f30"
PKG_REV="128"
PKG_REV="129"
PKG_ARCH="any"
PKG_LICENSE="MIT"
PKG_SITE="https://github.com/librespot-org/librespot/"

View File

@ -30,3 +30,7 @@ msgstr ""
msgctxt "#30106"
msgid "RTP Port"
msgstr ""
msgctxt "#30107"
msgid "Connect Port"
msgstr ""

View File

@ -15,6 +15,7 @@ DEFAULTS = dict(
password='',
rtp_dest='127.0.0.1',
rtp_port='24642',
connect_port='0',
username='',
)

View File

@ -37,6 +37,8 @@ class Librespot(xbmc.Player):
settings = get_settings()
quoted = {k: shlex.quote(v) for (k, v) in settings.items()}
command = LIBRESPOT
if settings['connect_port'] != "0":
command += ' --zeroconf-port %s ' % settings['connect_port']
if settings['autoplay'] == 'true':
command += LIBRESPOT_AUTOPLAY
if (settings['discovery'] == 'false' and

View File

@ -7,5 +7,6 @@
<setting label="30104" id="password" type="text" default="" subsetting="true" visible="eq(-2,false)" option="hidden" />
<setting label="30105" id="name" type="text" default="Librespot@{}" />
<setting label="30106" id="rtp_port" type="number" default="24642" />
<setting label="30107" id="connect_port" type="number" default="0" />
</category>
</settings>