all repos — fixyoutube-go @ main

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

d2751eaa
add basic rate limiting
Marco Andronaco andronacomarco@gmail.com
Fri, 23 Feb 2024 10:41:23 +0100
885bf1a0
upgrade go version and dependencies
Marco Andronaco andronacomarco@gmail.com
Fri, 23 Feb 2024 00:42:55 +0100
c5f478be
better invidious error handling
Bi-Rabittoh andronacomarco@gmail.com
Sun, 18 Feb 2024 13:15:14 +0100

FixYouTube

Embed YouTube videos on Telegram, Discord and more!

How to use:

Replace www.youtube.com or youtu.be with y.outube.duckdns.org to fix embeds for short videos.

https://github.com/BiRabittoh/FixYouTube/assets/26506860/e1ad5397-41c8-4073-9b3e-598c66241255

Instructions

First of all, you should set the API key to whatever you want:

cp .env.example .env
nano .env

Docker with reverse proxy

Copy the template config file and make your adjustments. My configuration is based on DuckDNS but you can use whatever provider you find here.

cp docker/swag.env.example docker/swag.env
nano docker/swag.env

Finally: docker-compose up -d.

Docker without reverse proxy

Just run:

docker-compose -f docker-compose.simple.yaml up -d

Test and debug locally

go test -v ./...
go run .
clone
git clone https://git.birabittoh.duckdns.org/fixyoutube-go.git