From 361742756fa6134e16d2d907fe66ad90a252de41 Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Fri, 2 Aug 2024 15:46:14 -0400 Subject: [PATCH] Truncate values in FPS table columns --- TwitchDownloaderCLI/Modes/InfoHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TwitchDownloaderCLI/Modes/InfoHandler.cs b/TwitchDownloaderCLI/Modes/InfoHandler.cs index c1a818e7..7ddc3c5e 100644 --- a/TwitchDownloaderCLI/Modes/InfoHandler.cs +++ b/TwitchDownloaderCLI/Modes/InfoHandler.cs @@ -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) @@ -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); }