Skip to content

Commit

Permalink
Add video description to chat json files
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Sep 22, 2023
1 parent 485ca2a commit 71b08d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions TwitchDownloaderCore/ChatDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ public async Task DownloadAsync(IProgress<ProgressReport> progress, Cancellation

chatRoot.streamer.name = videoInfoResponse.data.video.owner.displayName;
chatRoot.streamer.id = int.Parse(videoInfoResponse.data.video.owner.id);
chatRoot.video.description = videoInfoResponse.data.video.description;
videoTitle = videoInfoResponse.data.video.title;
videoCreatedAt = videoInfoResponse.data.video.createdAt;
videoStart = downloadOptions.CropBeginning ? downloadOptions.CropBeginningTime : 0.0;
Expand Down
1 change: 1 addition & 0 deletions TwitchDownloaderCore/TwitchObjects/ChatRoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ public class VideoChapter
public class Video
{
public string title { get; set; }
public string description { get; set; }
public string id { get; set; }
public DateTime created_at { get; set; }
public double start { get; set; }
Expand Down

0 comments on commit 71b08d4

Please sign in to comment.