An open API service indexing awesome lists of open source software.

https://github.com/oskarrough/radio-table

nothing to see here
https://github.com/oskarrough/radio-table

Last synced: about 1 year ago
JSON representation

nothing to see here

Awesome Lists containing this project

README

          

Playing around. There are two things here:

1. A CLI program to manage a Radio4000 channel
2. A React (very configurable) component for rendering a table of tracks

## The CLI

Note, this only works with `bun` for now. Sorry.

```
Usage: bun src/cli.ts [...args]

Options:
--slug Slug of the radio to use
--folder Folder to download the tracks to
--limit Number of tracks to process
--pull Pull tracks from Radio4000
--download Download music files from tracks
```

I've temporarily hardcoded downloaded files to be in .m4a format, but this doesn't work some files. Let's let yt-dlp decide the format and updates track.files accordingly.

We can compile the CLI into a standalone binary like so:

```
bun build --compile --minify --sourcemap ./src/cli.ts --outfile r4
./r4 --slug oskar --folder ~/Music --limit 10 --pull --download
```

## The table component