Do not use h265

This commit is contained in:
Logan G 2022-07-20 18:02:56 -06:00
parent b18f850114
commit ef82200046
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -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
}
}