Skip to content

Commit

Permalink
Fix chat download fail due to null CommentVideo.creator (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN authored Mar 25, 2024
1 parent d566754 commit 8545099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwitchDownloaderCore/ChatDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private static List<Comment> ConvertComments(CommentVideo video, ChatFormat form
{
_id = oldComment.id,
created_at = oldComment.createdAt,
channel_id = video.creator.id,
channel_id = video.creator?.id ?? "", // Deliberate empty string for ChatJson.UpgradeChatJson
content_type = "video",
content_id = video.id,
content_offset_seconds = oldComment.contentOffsetSeconds,
Expand Down

0 comments on commit 8545099

Please sign in to comment.