README.md (view raw)
1# GoPipe
2Embed YouTube videos on Telegram, Discord and more!
3
4## How to use:
5Replace `www.youtube.com` or `youtu.be` with `y.outube.duckdns.org` to fix embeds for short videos.
6
7https://github.com/birabittoh/FixYouTube-legacy/assets/26506860/e1ad5397-41c8-4073-9b3e-598c66241255
8
9### Advanced usage
10Some services require video previews to be smaller than a certain file size. By default, this app selects the best-looking format that fits these criteria.
11
12Enter the `/{videoID}/{formatID}` endpoint.
13
14The default value of `formatID` is `1`, but you can increase it to cycle through the available formats for a given video or set it to `0` to select the best-looking format and ignore file size bounds altogether.
15
16If the video is too long, there might not be small enough formats. In that case, the app effectively behaves like `formatID` is set to `0`.
17
18## Instructions
19
20First of all, you should create a `.env` file:
21```
22cp .env.example .env
23```
24
25### Docker with reverse proxy
26Copy 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).
27
28```
29cp swag/swag.env.example swag/swag.env
30nano swag/swag.env
31```
32
33Finally: `docker compose up -d`.
34
35### Docker without reverse proxy
36Just run:
37```
38docker compose -f docker-compose.simple.yaml up -d
39```
40
41## Test and debug locally
42```
43go test -v ./...
44go run .
45```