2024-05-28 06:08:33 +00:00
|
|
|
# playlist helper
|
|
|
|
|
2024-07-01 17:40:51 +00:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pipx install pleb-saberlist
|
2024-07-09 22:52:45 +00:00
|
|
|
player_scores_by_stars
|
|
|
|
leaderboard_songs_by_stars
|
2024-07-01 17:40:51 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
|
|
|
```sh
|
|
|
|
Enter the playerid (Default: 76561199407393962):
|
|
|
|
Enter the minimum starlevel to include on the playlist (Default: 5): 6
|
|
|
|
Enter the maximum starlevel to include on the playlist (Default: 7.0):
|
|
|
|
Enter the filename for the playlist (Default: Replay SS 6.0★):
|
|
|
|
```
|
|
|
|
|
|
|
|
Creates a playlist called `Replay SS 6.0★.bplist`
|
|
|
|
|
2024-05-28 06:08:33 +00:00
|
|
|
## Development
|
|
|
|
|
|
|
|
Clone the repo and install dependencies into a local virtual environment:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
pip install --upgrade pip
|
|
|
|
pip install --editable .
|
|
|
|
```
|
|
|
|
|
|
|
|
## Resources
|
|
|
|
|
2024-07-01 16:49:45 +00:00
|
|
|
* [Beatleader API](https://beatleader.xyz/developer)
|
2024-05-28 06:08:33 +00:00
|
|
|
* [ScoreSaber API](https://docs.scoresaber.com/)
|
|
|
|
|
|
|
|
## Tips
|
|
|
|
|
2024-07-09 22:52:45 +00:00
|
|
|
Count results
|
|
|
|
|
|
|
|
```shell
|
|
|
|
jq '.songs | length' < playlist.bplist
|
|
|
|
```
|
|
|
|
|
2024-05-28 06:08:33 +00:00
|
|
|
Avoid printing covers in console.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
jq 'del(.image)' < playlist.bplist
|
|
|
|
```
|