diff --git a/UI/window-basic-auto-config.cpp b/UI/window-basic-auto-config.cpp index e72b772e3..fae1b657e 100644 --- a/UI/window-basic-auto-config.cpp +++ b/UI/window-basic-auto-config.cpp @@ -273,6 +273,10 @@ AutoConfigStreamPage::AutoConfigStreamPage(QWidget *parent) SLOT(ServiceChanged())); connect(ui->customServer, SIGNAL(textChanged(const QString &)), this, SLOT(ServiceChanged())); + connect(ui->customServer, SIGNAL(textChanged(const QString &)), this, + SLOT(UpdateKeyLink())); + connect(ui->customServer, SIGNAL(editingFinished()), this, + SLOT(UpdateKeyLink())); connect(ui->doBandwidthTest, SIGNAL(toggled(bool)), this, SLOT(ServiceChanged())); @@ -573,12 +577,8 @@ void AutoConfigStreamPage::ServiceChanged() void AutoConfigStreamPage::UpdateKeyLink() { - if (IsCustomService()) { - ui->doBandwidthTest->setEnabled(true); - return; - } - QString serviceName = ui->service->currentText(); + QString customServer = ui->customServer->text(); bool isYoutube = false; QString streamKeyLink; @@ -591,7 +591,8 @@ void AutoConfigStreamPage::UpdateKeyLink() } else if (serviceName.startsWith("Restream.io")) { streamKeyLink = "https://restream.io/settings/streaming-setup?from=OBS"; - } else if (serviceName == "Facebook Live") { + } else if (serviceName == "Facebook Live" || + (customServer.contains("fbcdn.net") && IsCustomService())) { streamKeyLink = "https://www.facebook.com/live/producer?ref=OBS"; } else if (serviceName.startsWith("Twitter")) { diff --git a/UI/window-basic-settings-stream.cpp b/UI/window-basic-settings-stream.cpp index 77b0b192d..c66d927e5 100644 --- a/UI/window-basic-settings-stream.cpp +++ b/UI/window-basic-settings-stream.cpp @@ -71,6 +71,10 @@ void OBSBasicSettings::InitStreamPage() SLOT(UpdateServerList())); connect(ui->service, SIGNAL(currentIndexChanged(int)), this, SLOT(UpdateKeyLink())); + connect(ui->customServer, SIGNAL(textChanged(const QString &)), this, + SLOT(UpdateKeyLink())); + connect(ui->customServer, SIGNAL(editingFinished(const QString &)), + this, SLOT(UpdateKeyLink())); } void OBSBasicSettings::LoadStream1Settings() @@ -208,12 +212,8 @@ void OBSBasicSettings::SaveStream1Settings() void OBSBasicSettings::UpdateKeyLink() { - if (IsCustomService()) { - ui->getStreamKeyButton->hide(); - return; - } - QString serviceName = ui->service->currentText(); + QString customServer = ui->customServer->text(); QString streamKeyLink; if (serviceName == "Twitch") { streamKeyLink = @@ -223,7 +223,8 @@ void OBSBasicSettings::UpdateKeyLink() } else if (serviceName.startsWith("Restream.io")) { streamKeyLink = "https://restream.io/settings/streaming-setup?from=OBS"; - } else if (serviceName == "Facebook Live") { + } else if (serviceName == "Facebook Live" || + (customServer.contains("fbcdn.net") && IsCustomService())) { streamKeyLink = "https://www.facebook.com/live/producer?ref=OBS"; } else if (serviceName.startsWith("Twitter")) {