Skip to content

Commit

Permalink
Fix some transmitter bits
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Nov 12, 2024
1 parent a9db4b0 commit d6a06b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion website/src/utils/content-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
};

Expand Down

0 comments on commit d6a06b4

Please sign in to comment.