diff --git a/TwitchDownloaderCore/ChatUpdater.cs b/TwitchDownloaderCore/ChatUpdater.cs index f2aaa22b..88e11e35 100644 --- a/TwitchDownloaderCore/ChatUpdater.cs +++ b/TwitchDownloaderCore/ChatUpdater.cs @@ -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; diff --git a/TwitchDownloaderWPF/WindowUrlList.xaml.cs b/TwitchDownloaderWPF/WindowUrlList.xaml.cs index f80b81df..b6309c5a 100644 --- a/TwitchDownloaderWPF/WindowUrlList.xaml.cs +++ b/TwitchDownloaderWPF/WindowUrlList.xaml.cs @@ -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,