Răsfoiți Sursa

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.
Maya Venkatraman 5 ani în urmă
părinte
comite
336c1994ad
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      UI/window-basic-auto-config.cpp
  2. 1 1
      UI/window-basic-settings-stream.cpp

+ 1 - 1
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")) {

+ 1 - 1
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 =