diff --git a/helpers.go b/helpers.go index 61eedec..64f111a 100644 --- a/helpers.go +++ b/helpers.go @@ -36,7 +36,8 @@ func getLargestFormat(input goutubedl.Result, sizeLimit float64) (format goutube } else { size = input.Formats()[i].Filesize } - if size <= sizeLimit && input.Formats()[i].VCodec != "h265" && slices.Contains(FileExtensions, input.Formats()[i].Ext) { // Discord can't embed HEVC + + if size <= sizeLimit && input.Formats()[i].VCodec != "h265" && input.Formats()[i].ACodec != "none" && slices.Contains(FileExtensions, input.Formats()[i].Ext) { // Discord can't embed HEVC return input.Formats()[i], nil } }