From 62df01c89872a9c8ba281d41ed2e248900438224 Mon Sep 17 00:00:00 2001 From: Logan G Date: Fri, 11 Aug 2023 02:18:22 -0600 Subject: [PATCH] Fixed YouTube support --- helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.go b/helpers.go index 28d39a2..61eedec 100644 --- a/helpers.go +++ b/helpers.go @@ -97,7 +97,7 @@ func getLargestDashFormat(input goutubedl.Result, sizeLimit float64) (videoForma func getLargestYTFormat(input goutubedl.Result, sizeLimit float64) (format goutubedl.Format, err error) { for i := len(input.Formats())-1; i >= 0; i-- { - if input.Formats()[i].VBR > 0 && input.Formats()[i].ASR > 0 && slices.Contains(FileExtensions, input.Formats()[i].Ext) { + if input.Formats()[i].FPS > 0 && input.Formats()[i].ASR > 0 && slices.Contains(FileExtensions, input.Formats()[i].Ext) { var size float64 if input.Formats()[i].FilesizeApprox > 0 { size = input.Formats()[i].FilesizeApprox