mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 14:43:21 -05:00
[raop] Add option to make an Airplay speaker permanent in the speaker list (issue #496)
This commit is contained in:
parent
a8d3a045f2
commit
18acb73fdb
@ -246,6 +246,11 @@ audio {
|
|||||||
# speaker list
|
# speaker list
|
||||||
# exclude = false
|
# exclude = false
|
||||||
|
|
||||||
|
# Enable this option to keep a particular AirPlay device in the speaker
|
||||||
|
# list and thus ignore mdns notifications about it no longer being
|
||||||
|
# present. The speaker will remain until restart of forked-daapd.
|
||||||
|
# permanent = false
|
||||||
|
|
||||||
# AirPlay password
|
# AirPlay password
|
||||||
# password = "s1kr3t"
|
# password = "s1kr3t"
|
||||||
#}
|
#}
|
||||||
|
@ -4592,6 +4592,12 @@ raop_device_cb(const char *name, const char *type, const char *domain, const cha
|
|||||||
{
|
{
|
||||||
DPRINTF(E_LOG, L_RAOP, "Excluding AirPlay device '%s' as set in config\n", at_name);
|
DPRINTF(E_LOG, L_RAOP, "Excluding AirPlay device '%s' as set in config\n", at_name);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (airplay && cfg_getbool(airplay, "permanent") && (port < 0))
|
||||||
|
{
|
||||||
|
DPRINTF(E_INFO, L_RAOP, "AirPlay device '%s' disappeared, but set as permanent in config\n", at_name);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user