From cd104d0886607c0a548955546f34e342f2db449c Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Sun, 28 Jan 2024 18:20:41 -0500 Subject: [PATCH] I misread that yesterday, whoops --- TwitchDownloaderCore/Chat/ChatJson.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/TwitchDownloaderCore/Chat/ChatJson.cs b/TwitchDownloaderCore/Chat/ChatJson.cs index b4b6ccd6..05fe734e 100644 --- a/TwitchDownloaderCore/Chat/ChatJson.cs +++ b/TwitchDownloaderCore/Chat/ChatJson.cs @@ -199,9 +199,12 @@ private static async Task UpgradeChatJson(ChatRoot chatRoot) if (!int.TryParse(chatRoot.video.user_id, out var assumedId)) { - if (!int.TryParse(broadcaster.Value?.commenter._id, out assumedId)) + if (chatRoot.comments.FirstOrDefault(x => int.TryParse(x.channel_id, out assumedId)) is null) { - assumedId = 0; + if (!int.TryParse(broadcaster.Value?.commenter._id, out assumedId)) + { + assumedId = 0; + } } }