diff --git a/KfChatDotNetBot/Services/Owncast.cs b/KfChatDotNetBot/Services/Owncast.cs index ab65ffa..491d98a 100644 --- a/KfChatDotNetBot/Services/Owncast.cs +++ b/KfChatDotNetBot/Services/Owncast.cs @@ -74,7 +74,7 @@ public class Owncast(ChatBot kfChatBot) : IDisposable var content = await response.Content.ReadFromJsonAsync(cancellationToken: ct); logger.Debug("Owncast endpoint returned the following JSON"); logger.Debug(content.GetRawText); - return content.GetProperty("data").Deserialize() ?? throw new InvalidOperationException(); + return content.Deserialize() ?? throw new InvalidOperationException(); } public void Dispose()