network-audio-controller icon indicating copy to clipboard operation
network-audio-controller copied to clipboard

Using "host" or "channel number" for add/remove fails

Open normen opened this issue 5 months ago • 1 comments

Hi,

first of all thanks for this, its a much needed tool for Dante networks!

However, as it seems, I can't use add/remove using IP addresses or channel numbers, it only seems to work with names.

I am getting errors like this:

RuntimeError
coroutine raised StopIteration
at /usr/lib/python3.12/asyncio/base_events.py:687 in run_until_complete

probably caused in:

~/.venv/lib/python3.12/site-packages/netaudio/console/commands/subscription/_remove.py:64 in handle

These happen when I use either an IP (--rx-device-host) or a channel number (--rx-channel-number) and in add and remove.

These probably tie in with #36 and #10 - adding that PR fixes the channel number issue but not the IP issue.

Any ideas?

normen avatar Jul 21 '25 14:07 normen

Looking into it it seems, the ip address has to be assigned like this: lambda d: d[1].ipv4 == ipaddress.ip_address(self.option("rx-device-host"))

Edit: Added a PR (#38)

normen avatar Jul 21 '25 14:07 normen