Skip to content

radio4000/r4

Repository files navigation

r4

Command-line interface for Radio4000

  • browse, create, update, and download radio channels and tracks.

Installation

NOT RELEASED YET! Below install instructions won't work yet.

npm i -g r4
r4

For the r4 download command to work, make sure yt-dlp is installed on your system.

Here's a quick overview:

r4 channel list --limit 10
r4 channel view ko002
r4 track list --channel ko002
r4 track list --channel ko002 --tag jazz,ambient
r4 download ko002
r4 search "ambient"
r4 auth login
r4 channel create radio123 --name "Radio 123"
r4 track create --channel radio123 --title "Song" --url "https://youtube.com/..."
r4 track update <id> --title "Updated song"

# Pipe and compose
r4 track list --channel ko002 --limit 10 | jq '.[] | .title'

# Or export to sqlite
r4 schema | sqlite3 my.db
r4 track list --channel ko002 --format sql | sqlite3 my.db

Most commands support a --format flag to print human-readable text, json or SQL.

Development

git clone [email protected]:radio4000/r4.git
cd r4
bun install
bun link
bun run check  # format and lint
bun run test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •