Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native Bluesound Draft PR #1604

Closed
wants to merge 10 commits into from
17 changes: 7 additions & 10 deletions .devcontainer/Dockerfile
Cyanogenbot marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@

FROM mcr.microsoft.com/vscode/devcontainers/python:3.12

RUN <<EOF
set -x
set -e
apt-get update
apt-get install -yq --no-install-recommends \
ffmpeg \
;
apt-get clean
rm -rf /var/lib/apt/lists/*
EOF
RUN set -x && \
set -e && \
apt-get update && \
apt-get install -yq --no-install-recommends \
ffmpeg && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
5 changes: 5 additions & 0 deletions music_assistant/server/helpers/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ def get_primary_ip_address_from_zeroconf(discovery_info: AsyncServiceInfo) -> st
return None


def get_port_from_zeroconf(discovery_info: AsyncServiceInfo) -> str | None:
"""Get primary IP address from zeroconf discovery info."""
return discovery_info.port


class TaskManager:
"""
Helper class to run many tasks at once.
Expand Down
Loading
Loading