Skip to content

Commit

Permalink
Fix 2 crashes caused by downloading clips created by now deleted users (
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN authored Feb 3, 2025
1 parent a974f21 commit 82f82ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions TwitchDownloaderCore/ChatUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ private async Task UpdateVideoInfo(int totalSteps, int currentStep, Cancellation

chatRoot.clipper ??= new Clipper
{
name = clipInfo.curator.displayName,
login = clipInfo.curator.login,
id = int.Parse(clipInfo.curator.id),
name = clipInfo.curator?.displayName,
login = clipInfo.curator?.login,
id = int.Parse(clipInfo.curator?.id ?? "0"),
};

chatRoot.video.title = clipInfo.title;
Expand Down
4 changes: 2 additions & 2 deletions TwitchDownloaderWPF/WindowUrlList.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ private async void btnQueue_Click(object sender, RoutedEventArgs e)
Title = clipInfo.title,
StreamerName = clipInfo.broadcaster?.displayName ?? Translations.Strings.UnknownUser,
StreamerId = clipInfo.broadcaster?.id,
ClipperName = clipInfo.curator.displayName,
ClipperId = clipInfo.curator.id,
ClipperName = clipInfo.curator?.displayName ?? Translations.Strings.UnknownUser,
ClipperId = clipInfo.curator?.id,
Time = Settings.Default.UTCVideoTime ? clipInfo.createdAt : clipInfo.createdAt.ToLocalTime(),
Views = clipInfo.viewCount,
Game = clipInfo.game?.displayName ?? Translations.Strings.UnknownGame,
Expand Down

0 comments on commit 82f82ea

Please sign in to comment.