From 89cba3d06479ee5d7734ef59c180d2cf681644e5 Mon Sep 17 00:00:00 2001 From: Mark Ferry Date: Sun, 19 Nov 2023 18:19:21 +0000 Subject: [PATCH] feat #23, #24: launch librespot-java with custom config --- templates/snapserver.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/snapserver.template b/templates/snapserver.template index a4d876f..13ec5fb 100644 --- a/templates/snapserver.template +++ b/templates/snapserver.template @@ -147,7 +147,7 @@ source = pipe:///tmp/mopidy.{{name}}?name={{name}}&sampleformat=48000:16:2&codec # {{name}} source = pipe:///tmp/mopidy.{{name}}?name=- {{name}} iris&sampleformat=48000:16:2&codec=flac source = airplay:///shairport-sync?name=- {{name}} airplay&devicename={{Name}}&port={{airplay.port}}¶ms=--configfile={{path.config_root}}/shairport-sync.{{name}}.conf -source = librespot:///librespot?name=- {{name}} spotify&devicename={{Name}}&bitrate=160&volume=50&onevent={{path.config_root}}/{{spotify.event}}%20{{name}}¶ms=--zeroconf-port%20{{spotify.zeroconf}} +source = process://{{path.java}}?name=- {{name}} spotify&log_stderr=true&sampleformat=44100:16:2¶ms=-jar%20{{spotify.jar}}%20--conf-file={{path.config_root}}/librespot.{{name}}.toml source = meta:///{{#announcer_streams}}{{.}}/{{/announcer_streams}}{{#streams}}- {{name}} {{.}}/{{/streams}}{{#other_streams}}{{.}}/{{/other_streams}}?name={{Name}} @@ -157,7 +157,7 @@ source = meta:///{{#announcer_streams}}{{.}}/{{/announcer_streams}}{{#streams}}- # {{Name}} source = pipe:///tmp/mopidy.{{name}}?name=- {{name}} iris&sampleformat=48000:16:2&codec=flac source = airplay:///shairport-sync?name=- {{name}} airplay&devicename={{Name}}&port={{airplay.port}}¶ms=--configfile={{path.config_root}}/shairport-sync.{{name}}.conf -source = librespot:///librespot?name=- {{name}} spotify&devicename={{Name}}&bitrate=160&volume=50&onevent={{path.config_root}}/{{spotify.event}}%20{{name}}¶ms=--zeroconf-port%20{{spotify.zeroconf}} +source = process://{{path.java}}?name=- {{name}} spotify&log_stderr=true&sampleformat=44100:16:2¶ms=-jar%20{{spotify.jar}}%20--conf-file={{path.config_root}}/librespot.{{name}}.toml source = meta:///{{#announcer_streams}}{{.}}/{{/announcer_streams}}{{#streams}}- {{name}} {{.}}/{{/streams}}?name={{Name}}