From c786f10a03d6ee63f0f3f559ff83f8c1a6544514 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Wed, 29 Oct 2025 09:51:51 -0500 Subject: [PATCH] fix: return -1 when not live --- index.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.cs b/index.cs index c80d76f..c4f018b 100644 --- a/index.cs +++ b/index.cs @@ -42,7 +42,7 @@ static async Task GetLiveViewerCountAsync(TokenResponse tokenResponse) if (ytResponse is null || ytResponse.Items.Length is 0) { - throw new Exception(string.Empty); + return -1; } return ytResponse.Items[0].Stats.Viewers;