diff --git a/TwitchDownloaderCore/TwitchObjects/Gql/GqlClipTokenResponse.cs b/TwitchDownloaderCore/TwitchObjects/Gql/GqlClipTokenResponse.cs index d0325514..8c386137 100644 --- a/TwitchDownloaderCore/TwitchObjects/Gql/GqlClipTokenResponse.cs +++ b/TwitchDownloaderCore/TwitchObjects/Gql/GqlClipTokenResponse.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Collections.Generic; namespace TwitchDownloaderCore.TwitchObjects.Gql { @@ -34,7 +30,7 @@ public class GqlClipTokenResponse public class VideoQuality { - public int frameRate { get; set; } + public double frameRate { get; set; } public string quality { get; set; } public string sourceURL { get; set; } public string __typename { get; set; } diff --git a/TwitchDownloaderWPF/PageClipDownload.xaml.cs b/TwitchDownloaderWPF/PageClipDownload.xaml.cs index 6eb722b2..9c0a7fbe 100644 --- a/TwitchDownloaderWPF/PageClipDownload.xaml.cs +++ b/TwitchDownloaderWPF/PageClipDownload.xaml.cs @@ -80,7 +80,7 @@ private async Task GetClipInfo() foreach (var quality in taskLinks.Result[0].data.clip.videoQualities) { - comboQuality.Items.Add(new TwitchClip(quality.quality, quality.frameRate.ToString(), quality.sourceURL)); + comboQuality.Items.Add(new TwitchClip(quality.quality, Math.Round(quality.frameRate).ToString("F0"), quality.sourceURL)); } comboQuality.SelectedIndex = 0;