radio4000 / radio4000/cli

r4 backup <channel> should download json, just as the app interface allows

Open
#8 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

In order to make the "cross-app experience more isomorphic", it would be nice if r4 backup <channel> could download the json backup of a channel (or at least a user's if logged in).

With the new /settings/import/backup

Currently r4 dl <channel> creates the folders <channel>/tracks/, so somehow either:

  • r4 dl would also download a backup (would work for anon users?)
  • r4 backup would check/create the <channel>/backup-date.json folder & file?

Questions/Issues:

  • dl and backup commands don't have the same "timeline", while backup is almost instant (json), dl could takes while (files); therefore a backup.json file could very well "not be in sync" with what the tracks are? Not sure it is an issue, better always have a fresh dl (at the right place, with correct naming), whatever the command that is run?
  • maybe we can have backup (just for json), and dl (calls backup and dl files)?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the implementations of the r4 backup and r4 dl commands, then compare their behavior with /settings/import/backup. Resolve whether backup should remain JSON-only or whether dl should invoke it, including naming, directory creation, synchronization, and anonymous-user behavior; done means the chosen command produces the documented backup and track layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.