Skip to content

Commit

Permalink
Fix crash when generating info table for VOD/Clip with square bracket…
Browse files Browse the repository at this point in the history
…s in its name (#1210)
  • Loading branch information
ScrubN authored Sep 5, 2024
1 parent 50a0859 commit 851f881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TwitchDownloaderCLI/Modes/InfoHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private static void HandleVodTable(GqlVideoResponse videoInfo, GqlVideoChapterRe
.AddColumn(new TableColumn("Key"))
.AddColumn(new TableColumn("Value"))
.AddRow(new Markup("Streamer"), GetUserNameMarkup(infoVideo.owner.displayName, infoVideo.owner.login, DEFAULT_STRING))
.AddRow("Title", infoVideo.title)
.AddRow(new Markup("Title"), new Paragraph(infoVideo.title))
.AddRow("Length", StringifyTimestamp(TimeSpan.FromSeconds(infoVideo.lengthSeconds)))
.AddRow("Category", infoVideo.game?.displayName ?? DEFAULT_STRING)
.AddRow("Views", infoVideo.viewCount.ToString("N0", CultureInfo.CurrentCulture))
Expand Down Expand Up @@ -274,7 +274,7 @@ private static void HandleClipTable(GqlClipResponse clipInfo, GqlClipTokenRespon
.AddColumn(new TableColumn("Key"))
.AddColumn(new TableColumn("Value"))
.AddRow(new Markup("Streamer"), GetUserNameMarkup(infoClip.broadcaster?.displayName, infoClip.broadcaster?.login, DEFAULT_STRING))
.AddRow("Title", infoClip.title)
.AddRow(new Markup("Title"), new Paragraph(infoClip.title))
.AddRow("Length", StringifyTimestamp(TimeSpan.FromSeconds(infoClip.durationSeconds)))
.AddRow(new Markup("Clipped by"), GetUserNameMarkup(infoClip.curator?.displayName, infoClip.curator?.login, DEFAULT_STRING))
.AddRow("Category", infoClip.game?.displayName ?? DEFAULT_STRING)
Expand Down

0 comments on commit 851f881

Please sign in to comment.