2023-04-14 17:17:11 -04:00
# YTDL Web
2023-04-15 17:28:18 -04:00
2023-04-15 17:32:44 -04:00
## Usage
```sh
ytdl-web [OPTIONS]
```
Available options:
2023-04-15 18:07:48 -04:00
- -b, --base-path string the base path, used when behind reverse proxy
2023-04-15 17:32:44 -04:00
- --config string config file (default is $XDG_CONFIG_HOME/ytdl-web/config.yml)
- -h, --help help for ytdl-web
2023-04-15 18:07:48 -04:00
- -l, --listen string address to listen on (default "127.0.0.1")
- -p, --port int port to listen on (default 8080)
- -y, --ytdlp-path string the path to the yt-dlp binary, used when it is not in $PATH (default "yt-dlp")
2023-04-15 17:32:44 -04:00
## Building from source
Prerequisites:
- [go v1.20 ](https://go.dev/doc/install )
- [task cli ](https://taskfile.dev/installation/ )
Steps:
1. Download dependencies
```sh
task deps
```
2. Build binary
```sh
task build
```
2023-04-15 18:24:23 -04:00
## Releasing
Prerequisites:
- [go v1.20 ](https://go.dev/doc/install )
- [goreleaser ](https://goreleaser.com/install/ )
- [task cli ](https://taskfile.dev/installation/ )
Steps:
1. Ensure gitea access token is in `~/.config/goreleaser/gitea_token`
2. Run release task
```sh
task release
```
2023-04-15 17:28:18 -04:00
## Publishing Chart
2023-04-15 18:24:23 -04:00
Prerequisites:
2023-04-15 17:28:18 -04:00
- [helm cli ](https://helm.sh/docs/intro/install/ )
- [cm-push helm plugin ](https://github.com/chartmuseum/helm-push/ ).
- [task cli ](https://taskfile.dev/installation/ )
Steps:
1. Add the helm repo
```sh
2023-04-15 17:32:44 -04:00
helm repo add --username {username} --password {password} gitea-apps https://git.fifitido.net/api/packages/apps/helm
2023-04-15 17:28:18 -04:00
```
2. Publish the chart
```sh
2023-04-15 19:26:02 -04:00
task publish-chart
2023-04-15 17:28:18 -04:00
```
2023-04-15 19:26:35 -04:00
2023-04-15 19:43:21 -04:00
## Contributing
Please read [CONTRIBUTING.md ](./CONTRIBUTING.md ) for details on our code of conduct, and the process for submitting pull requests to us.
## Versioning
We use [Semantic Versioning ](http://semver.org/ ) for versioning. For the versions available, see the [tags on this repository ](https://git.fifitido.net/apps/ytdl-web/tags ).
## Authors
- Evan Fiordeliso - _Initial project work_ - [efiordeliso ](https://git.fifitido.net/efiordeliso )
- Billie Thompson - _Provided README Template_ - [PurpleBooth ](https://github.com/PurpleBooth )
## License
The project is licensed under the [GPL v3 ](./LICENSE.md ) License - see the [LICENSE.md ](./LICENSE.md ) file for details.