diff --git a/TwitchDownloaderCLI/Modes/InfoHandler.cs b/TwitchDownloaderCLI/Modes/InfoHandler.cs index f0e94f09..7ddc3c5e 100644 --- a/TwitchDownloaderCLI/Modes/InfoHandler.cs +++ b/TwitchDownloaderCLI/Modes/InfoHandler.cs @@ -141,23 +141,23 @@ private static void HandleVodTable(GqlVideoResponse videoInfo, GqlVideoChapterRe if (hasBitrate) { streamTable - .AddColumn(new TableColumn("File size").RightAligned()) - .AddColumn(new TableColumn("Bitrate").RightAligned()); + .AddColumn(new TableColumn("Bitrate").RightAligned()) + .AddColumn(new TableColumn("File size").RightAligned()); } foreach (var stream in m3u8.Streams) { 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) { var videoLength = TimeSpan.FromSeconds(videoInfo.data.video.lengthSeconds); - var fileSize = stream.StreamInfo.Bandwidth.StringifyOrDefault(x => $"~{VideoSizeEstimator.StringifyByteCount(VideoSizeEstimator.EstimateVideoSize(x, TimeSpan.Zero, videoLength))}", DEFAULT_STRING); var bitrate = stream.StreamInfo.Bandwidth.StringifyOrDefault(x => $"{x / 1000}kbps", DEFAULT_STRING); - streamTable.AddRow(name, resolution, fps, codecs, fileSize, bitrate); + var fileSize = stream.StreamInfo.Bandwidth.StringifyOrDefault(x => $"~{VideoSizeEstimator.StringifyByteCount(VideoSizeEstimator.EstimateVideoSize(x, TimeSpan.Zero, videoLength))}", DEFAULT_STRING); + streamTable.AddRow(name, resolution, fps, codecs, bitrate, fileSize); } else { @@ -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); }