fix: return -1 when not live

This commit is contained in:
Stevan Freeborn
2025-10-29 09:51:51 -05:00
parent f543f377f6
commit c786f10a03
+1 -1
View File
@@ -42,7 +42,7 @@ static async Task<int> 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;