Do not use h265
This commit is contained in:
parent
b18f850114
commit
ef82200046
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ func getLargestFormat(input goutubedl.Result, sizeLimit float64) (format goutube
|
||||||
} else {
|
} else {
|
||||||
size = input.Formats()[i].Filesize
|
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
|
return input.Formats()[i], nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue