From 9a0dc509a33ca1793203f876f635f63bf841843b Mon Sep 17 00:00:00 2001 From: ar2rworld Date: Fri, 1 Sep 2023 16:28:30 -0400 Subject: [PATCH] change Download filter to best --- goutubedl_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goutubedl_test.go b/goutubedl_test.go index 3dfbd7e..b460db5 100644 --- a/goutubedl_test.go +++ b/goutubedl_test.go @@ -308,7 +308,7 @@ func TestDownloadSections(t *testing.T) { if ydlResultErr != nil { t.Errorf("failed to download: %s", ydlResultErr) } - dr, err := ydlResult.Download(context.Background(), ydlResult.Info.Formats[0].FormatID) + dr, err := ydlResult.Download(context.Background(), "best") if err != nil { t.Fatal(err) }