diff --git a/helpers.go b/helpers.go index acd2029..25612ab 100644 --- a/helpers.go +++ b/helpers.go @@ -33,7 +33,7 @@ func getLargestFormat(input goutubedl.Result, sizeLimit float64) (format goutube } else { size = input.Formats()[i].Filesize } - if size <= sizeLimit { + if size <= sizeLimit && input.Formats()[i].VCodec != "h265" { // Discord can't embed HEVC return input.Formats()[i], nil } }