Skip to content

Commit

Permalink
Fix being unable to update very old chat files
Browse files Browse the repository at this point in the history
Fixes #959
  • Loading branch information
ScrubN committed Jan 28, 2024
1 parent b339824 commit 90fd32f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TwitchDownloaderCore/ChatUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ private async Task UpdateVideoInfo(int totalSteps, int currentStep, IProgress<Pr
progress.Report(new ProgressReport(ReportType.SameLineStatus, $"Updating Video Info [{currentStep}/{totalSteps}]"));
progress.Report(new ProgressReport(currentStep * 100 / totalSteps));

if (string.IsNullOrWhiteSpace(chatRoot.video.id))
{
return;
}

if (chatRoot.video.id.All(char.IsDigit))
{
var videoId = int.Parse(chatRoot.video.id);
Expand Down

0 comments on commit 90fd32f

Please sign in to comment.