From 8546c82e785836d6999aa55235b34a67b6854426 Mon Sep 17 00:00:00 2001 From: legend2k Date: Thu, 16 May 2024 06:50:48 +0330 Subject: [PATCH] Proper check for IsApproxFilesize --- YoutubeApp/Media/Youtube.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/YoutubeApp/Media/Youtube.cs b/YoutubeApp/Media/Youtube.cs index b5e6995..00a9a3b 100644 --- a/YoutubeApp/Media/Youtube.cs +++ b/YoutubeApp/Media/Youtube.cs @@ -553,8 +553,7 @@ private List GenerateVariants(IEnumerable formats) ACodec = audioFormat.acodec, Abr = (float)audioFormat.abr, Filesize = (long)filesize, - IsApproxFilesize = videoFormat.filesize_approx is not null || - audioFormat.filesize_approx is not null, + IsApproxFilesize = videoFormat.filesize is null || audioFormat.filesize is null, }); } else