From 4c4e3cc02efa4b9993b55447c4c545ef561a24d9 Mon Sep 17 00:00:00 2001 From: Giovanni Fulco Date: Tue, 19 Dec 2023 18:07:38 +0100 Subject: [PATCH] [Enhancement] Default naming of OpenHome renderer #356 (#357) --- app/bin/run-upmpdcli.sh | 6 +++++- doc/change-history.md | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/bin/run-upmpdcli.sh b/app/bin/run-upmpdcli.sh index c3e7f14..49e2a03 100644 --- a/app/bin/run-upmpdcli.sh +++ b/app/bin/run-upmpdcli.sh @@ -228,7 +228,11 @@ fi # Friendly name management if [ -n "${FRIENDLY_NAME}" ]; then echo "FRIENDLY_NAME=[${FRIENDLY_NAME}], UPNPAV_SKIP_NAME_POSTFIX=[${UPNPAV_SKIP_NAME_POSTFIX}]" - UPMPD_FRIENDLY_NAME="${FRIENDLY_NAME}" + if [[ -z "${UPMPD_FRIENDLY_NAME}" ]] && [[ $OPENHOME -eq 1 && $UPNPAV -eq 1 ]]; then + UPMPD_FRIENDLY_NAME="${FRIENDLY_NAME} (oh)" + else + UPMPD_FRIENDLY_NAME="${FRIENDLY_NAME}" + fi echo "UPMPD_FRIENDLY_NAME=[${UPMPD_FRIENDLY_NAME}]" if [[ -z "${UPNPAV_SKIP_NAME_POSTFIX}" || "${UPNPAV_SKIP_NAME_POSTFIX^^}" == "YES" ]] && [ "${OPENHOME}" -eq 0 ] && diff --git a/doc/change-history.md b/doc/change-history.md index ea8ecaa..e297a95 100644 --- a/doc/change-history.md +++ b/doc/change-history.md @@ -2,6 +2,7 @@ Change Date|Major Changes ---|--- +2023-12-19|Default naming of oh renderer (see [#356](https://github.com/GioF71/upmpdcli-docker/issues/356)) 2023-12-16|Dropped support for Deezer (see [#353](https://github.com/GioF71/upmpdcli-docker/issues/353)) 2023-12-11|Support `prependnumberinitemlist` for Tidal (see issue [#351](https://github.com/GioF71/upmpdcli-docker/issues/351)) 2023-11-29|Dropped bullseye and mantic builds (see issue [#348](https://github.com/GioF71/upmpdcli-docker/issues/348))