all repos — fixyoutube-go @ 86cdbffea945847bad9ea82cd91edad7ef1360a9

A better way to embed YouTube videos everywhere (inspired by FixTweet).

decrease size limit to 20MB
Marco Andronaco andronacomarco@gmail.com
Fri, 12 Jan 2024 12:02:14 +0100
commit

86cdbffea945847bad9ea82cd91edad7ef1360a9

parent

d18ac234e2bf216e84f5b922b3abfe9f4ed0c951

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M invidious/invidious.goinvidious/invidious.go

@@ -14,7 +14,7 @@ "github.com/sirupsen/logrus"

) const timeoutDuration = 10 * time.Minute -const maxSizeBytes = 30000000 // 30 MB +const maxSizeBytes = 20000000 // 20 MB const instancesEndpoint = "https://api.invidious.io/instances.json?sort_by=api,type" const videosEndpoint = "https://%s/api/v1/videos/%s?fields=videoId,title,description,author,lengthSeconds,size,formatStreams"