Release v1.0.2: Passwort-Auth entfernt, Zeroconf-only
librespot 0.7+ unterstützt --password nicht mehr (nur noch OAuth/Zeroconf). Der --password-Arg ließ librespot sofort abstürzen → leere Pipeline. - username/password aus config.yaml und run.sh entfernt - librespot nutzt jetzt ausschließlich Zeroconf/mDNS zur Erkennung - Gerät erscheint automatisch in der Spotify-App im lokalen Netz Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: "Busch-Radio Spotify Bridge"
|
||||
version: "1.0.1"
|
||||
version: "1.0.2"
|
||||
slug: busch_radio_spotify
|
||||
description: >
|
||||
Streamt Spotify-Musik als Internet-Radio-Stream für das Busch-Jäger Unterputz-Internetradio.
|
||||
@@ -22,8 +22,6 @@ options:
|
||||
stream_port: 8000
|
||||
stream_mount: "/stream.mp3"
|
||||
icecast_password: "busch-radio-geheim"
|
||||
username: ""
|
||||
password: ""
|
||||
|
||||
schema:
|
||||
device_name: str
|
||||
@@ -31,8 +29,6 @@ schema:
|
||||
stream_port: port
|
||||
stream_mount: str
|
||||
icecast_password: str
|
||||
username: str?
|
||||
password: password?
|
||||
|
||||
# ---- Netzwerk ----
|
||||
ports:
|
||||
|
||||
@@ -135,6 +135,9 @@ fi
|
||||
bashio::log.info "Icecast läuft (PID: ${ICECAST_PID})"
|
||||
|
||||
# ── Librespot-Argumente zusammenstellen ───────────────────────────────────────
|
||||
# Hinweis: librespot 0.7+ unterstützt keine Passwort-Authentifizierung mehr.
|
||||
# Das Gerät wird automatisch via Zeroconf/mDNS im lokalen Netz gefunden.
|
||||
# Die Spotify-App zeigt es als verfügbares Abspielgerät an.
|
||||
LIBRESPOT_ARGS=(
|
||||
"--name" "${DEVICE_NAME}"
|
||||
"--bitrate" "${BITRATE}"
|
||||
@@ -143,20 +146,7 @@ LIBRESPOT_ARGS=(
|
||||
"--initial-volume" "100"
|
||||
)
|
||||
|
||||
# Optionale Spotify-Zugangsdaten
|
||||
SP_USER=$(bashio::config 'username')
|
||||
SP_PASS=$(bashio::config 'password')
|
||||
|
||||
if [ -n "${SP_USER}" ]; then
|
||||
LIBRESPOT_ARGS+=("--username" "${SP_USER}")
|
||||
bashio::log.info "Spotify-Konto: ${SP_USER}"
|
||||
else
|
||||
bashio::log.info "Kein Spotify-Konto konfiguriert (Zeroconf/mDNS-Erkennung aktiv)"
|
||||
fi
|
||||
|
||||
if [ -n "${SP_PASS}" ]; then
|
||||
LIBRESPOT_ARGS+=("--password" "${SP_PASS}")
|
||||
fi
|
||||
bashio::log.info "Authentifizierung: Zeroconf/mDNS (automatische Erkennung im Netz)"
|
||||
|
||||
# ── Icecast-Source-URL ────────────────────────────────────────────────────────
|
||||
ICECAST_SOURCE_URL="icecast://source:${ICECAST_PASSWORD}@localhost:${STREAM_PORT}${STREAM_MOUNT}"
|
||||
|
||||
Reference in New Issue
Block a user