https://github.com/crescentkohana/prunez
Bulk delete ListenBrainz listens
https://github.com/crescentkohana/prunez
listenbrainz practice-project rust
Last synced: 6 months ago
JSON representation
Bulk delete ListenBrainz listens
- Host: GitHub
- URL: https://github.com/crescentkohana/prunez
- Owner: CrescentKohana
- License: zlib
- Created: 2021-10-23T19:38:29.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-30T12:52:37.000Z (over 3 years ago)
- Last Synced: 2024-05-02T04:18:52.081Z (over 1 year ago)
- Topics: listenbrainz, practice-project, rust
- Language: Rust
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ListenBrainz Prune
[](https://github.com/Luukuton/prunez/actions/workflows/rust.yml)
At the time of writing ListenBrainz doesn't have the option to mass delete listens. This alleviates that.
## Usage
- Copy and rename `example.env` to `.env` and change LISTENBRAINZ_API_KEY to the one found in: [listenbrainz.org/profile](https://listenbrainz.org/profile)
- Export ListenBrainz listens: [listenbrainz.org/profile/export](https://listenbrainz.org/profile/export)
- Place the exported .json with the executable. Rename it to listens.json or set a different source filename with --filename.
- Run the executable with options below.```prunez [options]```
- `--filename, -f` sets source filename. Default: **listens.json**
- `--url, -u` sets API URL. Default: **https://api.listenbrainz.org**
- `--artists, -a` list of artists. All listens associated with them will be pruned. Separated by `;;`.
- `--songs, -s` list of song titles. Separated by `;;`.
- `--recids, -r` list of recording msids. Separated by `;`.## Development
- Format with `cargo fmt`
- Build with `cargo build`
- Run with `cargo run -- [options]`
- Build for release with `cargo build --release`