Prefer ApiKey over api_key in generated URL's (#13342)

This commit is contained in:
Niels van Velzen
2025-01-11 17:35:44 +01:00
committed by GitHub
parent 17bbe4a2cd
commit 3b8e614819
4 changed files with 6 additions and 6 deletions

View File

@@ -979,7 +979,7 @@ public class StreamInfo
}
list.Add(new NameValuePair("PlaySessionId", item.PlaySessionId ?? string.Empty));
list.Add(new NameValuePair("api_key", accessToken ?? string.Empty));
list.Add(new NameValuePair("ApiKey", accessToken ?? string.Empty));
string? liveStreamId = item.MediaSource?.LiveStreamId;
list.Add(new NameValuePair("LiveStreamId", liveStreamId ?? string.Empty));
@@ -1189,7 +1189,7 @@ public class StreamInfo
if (!string.IsNullOrEmpty(accessToken))
{
info.Url += "?api_key=" + accessToken;
info.Url += "?ApiKey=" + accessToken;
}
info.IsExternalUrl = false;