https://github.com/birabittoh/fixyoutube-go
A better way to embed YouTube videos everywhere (inspired by FixTweet).
https://github.com/birabittoh/fixyoutube-go
discord embed telegram youtube
Last synced: 5 months ago
JSON representation
A better way to embed YouTube videos everywhere (inspired by FixTweet).
- Host: GitHub
- URL: https://github.com/birabittoh/fixyoutube-go
- Owner: birabittoh
- License: mit
- Created: 2023-12-18T20:41:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-15T19:04:28.000Z (over 1 year ago)
- Last Synced: 2024-12-15T19:18:30.626Z (over 1 year ago)
- Topics: discord, embed, telegram, youtube
- Language: Go
- Homepage: https://y.outube.duckdns.org
- Size: 64.5 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 create your `.env` file:
```
cp .env.example .env
```
### Docker without reverse proxy
Just run:
```
docker compose -f compose.simple.yaml up -d
```
### Docker with reverse proxy
Copy the template config file and make your adjustments. My configuration is based on [DuckDNS](http://duckdns.org/) but you can use whatever provider you find [here](https://docs.linuxserver.io/general/swag#docker-compose).
```
cd swag
cp swag.env.example swag.env
nano swag.env
cd ..
```
Finally: `docker compose up -d`.
## Test and debug locally
```
go test -v ./...
go run .
```