提交 336c1994 编写于 作者: M Maya Venkatraman 提交者: jp9000

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.
上级 41f4a0b0
......@@ -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")) {
......
......@@ -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 =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册