mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 13:39:47 -05:00
[raop] Add option to exclude particular devices from speaker list
This commit is contained in:
@@ -4009,6 +4009,14 @@ raop_device_cb(const char *name, const char *type, const char *domain, const cha
|
||||
|
||||
DPRINTF(E_DBG, L_RAOP, "Event for AirPlay device %s (port %d, id %" PRIx64 ")\n", at_name, port, id);
|
||||
|
||||
airplay = cfg_gettsec(cfg, "airplay", at_name);
|
||||
if (airplay && cfg_getbool(airplay, "exclude"))
|
||||
{
|
||||
DPRINTF(E_LOG, L_RAOP, "Excluding AirPlay device '%s' as set in config\n", at_name);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
rd = calloc(1, sizeof(struct output_device));
|
||||
if (!rd)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user