[raop] Add option to make an Airplay speaker permanent in the speaker list (issue #496)

This commit is contained in:
ejurgensen 2018-11-16 18:46:47 +01:00
parent a8d3a045f2
commit 18acb73fdb
2 changed files with 11 additions and 0 deletions

View File

@ -246,6 +246,11 @@ audio {
# speaker list
# 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
# password = "s1kr3t"
#}

View File

@ -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);
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;
}