diff --git a/TwitchDownloaderCore/TwitchHelper.cs b/TwitchDownloaderCore/TwitchHelper.cs index 3b53f25b..b73686a7 100644 --- a/TwitchDownloaderCore/TwitchHelper.cs +++ b/TwitchDownloaderCore/TwitchHelper.cs @@ -129,7 +129,11 @@ public static async Task GetClipLinks(string clipId) response.EnsureSuccessStatusCode(); var gqlClipTokenResponses = await response.Content.ReadFromJsonAsync(); - Array.Sort(gqlClipTokenResponses[0].data.clip.videoQualities, new ClipQualityComparer()); + if (gqlClipTokenResponses[0].data.clip.videoQualities is { Length: > 0}) + { + Array.Sort(gqlClipTokenResponses[0].data.clip.videoQualities, new ClipQualityComparer()); + } + return gqlClipTokenResponses; }