From d6a06b4b4d3258d2062bdb3e41b77a70c30c9e61 Mon Sep 17 00:00:00 2001 From: Solomon Cammack Date: Tue, 12 Nov 2024 07:42:47 +0000 Subject: [PATCH] Fix some transmitter bits --- .../website/dashboard/DashboardTransmitter.vue | 11 ++++++++++- website/src/utils/content-utils.js | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/website/src/components/website/dashboard/DashboardTransmitter.vue b/website/src/components/website/dashboard/DashboardTransmitter.vue index 6b87582e..97c49644 100644 --- a/website/src/components/website/dashboard/DashboardTransmitter.vue +++ b/website/src/components/website/dashboard/DashboardTransmitter.vue @@ -223,7 +223,16 @@ export default { advertise: isLive }); if ((this.broadcast?.broadcast_settings || []).includes("Set title when going live")) { - await authenticatedRequest("actions/set-title"); + if (isLive) { + await authenticatedRequest("actions/set-title"); + this.$notyf.success("Detected going live - setting title & advertise"); + } + } else { + if (isLive) { + this.$notyf.success("Detected going live - turning on advertise"); + } else { + this.$notyf.success("Detected going offline - turning off advertise"); + } } } finally { this.processingAdvertise = false; diff --git a/website/src/utils/content-utils.js b/website/src/utils/content-utils.js index 60d9da0f..2a663eed 100644 --- a/website/src/utils/content-utils.js +++ b/website/src/utils/content-utils.js @@ -820,7 +820,7 @@ export function recogniseRemoteServer(serverUrl) { recognisedID: null, recognisedPullLink: null, url: serverUrl, - server: url.pathname.split(":")[0].replace("//", ""), + server: url.hostname.split(":")[0].replace("//", ""), streamid: url.searchParams.get("streamid") || url.hash.slice(1).split("&").find((text, i, a) => text.includes("publish")) };