From 52fc1e81eb48f52feec0d24e7f75d5c0917fff41 Mon Sep 17 00:00:00 2001 From: Martin Schmidt Date: Wed, 22 Jun 2022 07:59:20 +0200 Subject: [PATCH] translation: add SendOnlyMatchedHosts fix: remove deprecated BlastAliveMessageIntervalSeconds from config --- frontend/locales/en-US.json | 4 ++++ frontend/pages/settings/dlna.vue | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/locales/en-US.json b/frontend/locales/en-US.json index 59d64766725..6ac7555f8a8 100644 --- a/frontend/locales/en-US.json +++ b/frontend/locales/en-US.json @@ -362,6 +362,10 @@ "text": "[deprecated] Alive message interval", "description": "MIGRATING - TO BE REMOVED ONCE WEB HAS BEEN ALTERED" }, + "SendOnlyMatchedHost": { + "text": "Send only matched host", + "description": "Only send data if the host matches" + }, "AutoCreatePlayToProfiles": { "text": "Automatically create PlayTo device profiles", "description": "" diff --git a/frontend/pages/settings/dlna.vue b/frontend/pages/settings/dlna.vue index 22784ace9e6..c2bcc18dc73 100644 --- a/frontend/pages/settings/dlna.vue +++ b/frontend/pages/settings/dlna.vue @@ -140,7 +140,6 @@ interface DlnaNamedConfiguration { EnableServer: boolean; AliveMessageIntervalSeconds: number; BlastAliveMessages: boolean; - BlastAliveMessageIntervalSeconds: number; DefaultUserId: string; AutoCreatePlayToProfiles: boolean; SendOnlyMatchedHost: boolean; @@ -152,6 +151,9 @@ export default Vue.extend({ await $api.configuration.getNamedConfiguration({ key: 'dlna' }) ).data; + // remove deprecated duplicate option + delete dlnaSettings.BlastAliveMessageIntervalSeconds; + const dlnaProfiles = (await $api.dlna.getProfileInfos()).data; const users = (await $api.user.getUsers()).data;