@@ -269,6 +269,8 @@ public async Task DownloadAsync(IProgress<ProgressReport> progress, Cancellation
269
269
double videoEnd = 0.0 ;
270
270
double videoDuration = 0.0 ;
271
271
double videoTotalLength ;
272
+ int viewCount ;
273
+ string game ;
272
274
int connectionCount = downloadOptions . ConnectionCount ;
273
275
274
276
if ( downloadType == DownloadType . Video )
@@ -286,6 +288,8 @@ public async Task DownloadAsync(IProgress<ProgressReport> progress, Cancellation
286
288
videoStart = downloadOptions . CropBeginning ? downloadOptions . CropBeginningTime : 0.0 ;
287
289
videoEnd = downloadOptions . CropEnding ? downloadOptions . CropEndingTime : videoInfoResponse . data . video . lengthSeconds ;
288
290
videoTotalLength = videoInfoResponse . data . video . lengthSeconds ;
291
+ viewCount = videoInfoResponse . data . video . viewCount ;
292
+ game = videoInfoResponse . data . video . game ? . displayName ?? "Unknown" ;
289
293
290
294
GqlVideoChapterResponse videoChapterResponse = await TwitchHelper . GetVideoChapters ( int . Parse ( videoId ) ) ;
291
295
foreach ( var responseChapter in videoChapterResponse . data . video . moments . edges )
@@ -325,6 +329,8 @@ public async Task DownloadAsync(IProgress<ProgressReport> progress, Cancellation
325
329
videoStart = ( int ) clipInfoResponse . data . clip . videoOffsetSeconds ;
326
330
videoEnd = ( int ) clipInfoResponse . data . clip . videoOffsetSeconds + clipInfoResponse . data . clip . durationSeconds ;
327
331
videoTotalLength = clipInfoResponse . data . clip . durationSeconds ;
332
+ viewCount = clipInfoResponse . data . clip . viewCount ;
333
+ game = clipInfoResponse . data . clip . game ? . displayName ?? "Unknown" ;
328
334
connectionCount = 1 ;
329
335
}
330
336
@@ -334,6 +340,8 @@ public async Task DownloadAsync(IProgress<ProgressReport> progress, Cancellation
334
340
chatRoot . video . start = videoStart ;
335
341
chatRoot . video . end = videoEnd ;
336
342
chatRoot . video . length = videoTotalLength ;
343
+ chatRoot . video . viewCount = viewCount ;
344
+ chatRoot . video . game = game ;
337
345
videoDuration = videoEnd - videoStart ;
338
346
339
347
var tasks = new List < Task < List < Comment > > > ( ) ;
0 commit comments