From 336c1994adc799751d37f4989cfddb91af3ba220 Mon Sep 17 00:00:00 2001 From: Maya Venkatraman Date: Mon, 12 Oct 2020 21:22:25 -0700 Subject: [PATCH] UI: Find YouTube via starting string, not full match Allows the ability to get the stream key for YouTube regardless of whether using the normal RTMP or HLS versions of YouTube. --- UI/window-basic-auto-config.cpp | 2 +- UI/window-basic-settings-stream.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/window-basic-auto-config.cpp b/UI/window-basic-auto-config.cpp index 61d291145..c804d601f 100644 --- a/UI/window-basic-auto-config.cpp +++ b/UI/window-basic-auto-config.cpp @@ -616,7 +616,7 @@ void AutoConfigStreamPage::UpdateKeyLink() if (serviceName == "Twitch") { streamKeyLink = "https://www.twitch.tv/broadcast/dashboard/streamkey"; - } else if (serviceName == "YouTube / YouTube Gaming") { + } else if (serviceName.startsWith("YouTube")) { streamKeyLink = "https://www.youtube.com/live_dashboard"; isYoutube = true; } else if (serviceName.startsWith("Restream.io")) { diff --git a/UI/window-basic-settings-stream.cpp b/UI/window-basic-settings-stream.cpp index 4b68f9339..f88871355 100644 --- a/UI/window-basic-settings-stream.cpp +++ b/UI/window-basic-settings-stream.cpp @@ -252,7 +252,7 @@ void OBSBasicSettings::UpdateKeyLink() if (serviceName == "Twitch") { streamKeyLink = "https://www.twitch.tv/broadcast/dashboard/streamkey"; - } else if (serviceName == "YouTube / YouTube Gaming") { + } else if (serviceName.startsWith("YouTube")) { streamKeyLink = "https://www.youtube.com/live_dashboard"; } else if (serviceName.startsWith("Restream.io")) { streamKeyLink =