Skip to content

Commit

Permalink
Truncate values in FPS table columns
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Aug 2, 2024
1 parent c4fe43d commit 3617427
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 @@ -149,7 +149,7 @@ private static void HandleVodTable(GqlVideoResponse videoInfo, GqlVideoChapterRe
{
var name = stream.GetResolutionFramerateString();
var resolution = stream.StreamInfo.Resolution.StringifyOrDefault(x => x.ToString(), DEFAULT_STRING);
var fps = stream.StreamInfo.Framerate.StringifyOrDefault(x => x.ToString(CultureInfo.CurrentCulture), DEFAULT_STRING);
var fps = stream.StreamInfo.Framerate.StringifyOrDefault(x => $"{x:F0}", DEFAULT_STRING);
var codecs = stream.StreamInfo.Codecs.StringifyOrDefault(x => x, DEFAULT_STRING);

if (hasBitrate)
Expand Down Expand Up @@ -303,7 +303,7 @@ private static void HandleClipTable(GqlClipResponse clipInfo, GqlClipTokenRespon
{
var name = string.Create(CultureInfo.CurrentCulture, $"{quality.quality}p{quality.frameRate:F0}");
var height = quality.quality;
var fps = quality.frameRate.StringifyOrDefault(x => string.Create(CultureInfo.CurrentCulture, $"{x:F2}"), DEFAULT_STRING);
var fps = quality.frameRate.StringifyOrDefault(x => $"{x:F0}", DEFAULT_STRING);
qualityTable.AddRow(name, height, fps);
}

Expand Down

0 comments on commit 3617427

Please sign in to comment.