cytube-json-generator/README.md
Sam Therapy 578e8ea540
Add spinny on upload
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-19 12:32:09 -05:00

33 lines
1.1 KiB
Markdown

# cytube-json-generator
A [deno](https://deno.land) module to generate custom JSON for a
[CyTube](https://github.com/calzoneman/sync) server.
## Installation
First, you'll need to
[install deno](https://deno.land/manual/getting_started/installation).
Then, you can install the module with:
```bash
deno install --allow-read --allow-write --allow-run "https://git.froth.zone/sam/cytube-json-generator/raw/branch/master/generator.ts"
```
`deno install` installs the module to DENO_INSTALL_ROOT (default `~/.deno`), so
you may need to add this to your PATH. An alternative I have is setting
`DENO_INSTALL_ROOT` to `~/.local/bin`, which I have in my PATH.
## Upgrading
You can upgrade in a similar way to installing:
```bash
deno cache --reload "https://git.froth.zone/sam/cytube-json-generator/raw/branch/master/generator.ts"
```
then [install](#installation) again.
## Usage
`generator video.mp4 subs.srt` will generate a JSON file for the video and
subtitle file, and upload all three to
[f.ruina.exposed](https://f.ruina.exposed). `generator -h` will show full usage.