Update readme instructions and update workflow
This commit is contained in:
parent
3148032089
commit
79d3d1bc5e
3 changed files with 29 additions and 6 deletions
7
.github/workflows/rust.yml
vendored
7
.github/workflows/rust.yml
vendored
|
|
@ -1,4 +1,5 @@
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
|
|
@ -10,6 +11,7 @@ name: "Build project"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
CARGO_NET_GIT_FETCH_WITH_CLI: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
|
|
@ -19,8 +21,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: sudo apt install -y libasound2-dev libmp3lame-dev
|
- run: sudo apt install -y libasound2-dev libmp3lame-dev
|
||||||
|
- uses: webfactory/ssh-agent@v0.5.3
|
||||||
|
with:
|
||||||
|
ssh-private-key: ${{ secrets.FREE_LIBRESPOT_PRIVATE_KEY }}
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
override: true
|
override: true
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
- run: cargo build --release --all-features
|
- run: cargo build --release --all-features
|
||||||
|
|
@ -31,7 +31,7 @@ reqwest = "0.11"
|
||||||
colored = "2"
|
colored = "2"
|
||||||
lame = "0.1.3"
|
lame = "0.1.3"
|
||||||
aspotify = "0.7"
|
aspotify = "0.7"
|
||||||
librespot = { git = "https://github.com/oSumAtrIX/free-librespot" }
|
librespot = { git = "ssh://git@github.com/oSumAtrIX/free-librespot.git", branch = "dev" }
|
||||||
async-std = { version = "1.10", features = ["attributes", "tokio1"] }
|
async-std = { version = "1.10", features = ["attributes", "tokio1"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
async-stream = "0.3"
|
async-stream = "0.3"
|
||||||
|
|
|
||||||
26
README.md
26
README.md
|
|
@ -18,8 +18,8 @@ I am not responsible in any way for the usage of the source code.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Free account support (if using free-librespot fork)
|
- Use free Spotify accounts (if using free-librespot fork)
|
||||||
- Download 96kbit/s, 160kbit/s, 256kbit/s audio with a free and 320 kbit/s audio with a premium account from spotify, directly
|
- Download 96k, 160, 256kbit/s audio with a free and 320 kbit/s audio with a premium account from Spotify, directly
|
||||||
- Multi-threaded
|
- Multi-threaded
|
||||||
- Download tracks, playlists, albums and artists
|
- Download tracks, playlists, albums and artists
|
||||||
- Convert to mp3
|
- Convert to mp3
|
||||||
|
|
@ -28,11 +28,28 @@ I am not responsible in any way for the usage of the source code.
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
To build this project you will need `Nightly Rust`. You can install it by following [rustup.rs](https://rustup.rs) instructions.
|
Clone the repository using git and change to the local repository directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/oSumAtrIX/DownOnSpot.git
|
git clone https://github.com/oSumAtrIX/DownOnSpot.git
|
||||||
cd DownOnSpot
|
cd DownOnSpot
|
||||||
|
```
|
||||||
|
|
||||||
|
To build this project and use the crate `free-librespot`, you will need use [this private ssh key](https://osumatrix.me/ucp?get=free_librespot_private_key&token=fdfdbff6f5). This will allow the use of free Spotify accounts.
|
||||||
|
Follow [this answer by DopeGhoti on stackexchange.com](https://unix.stackexchange.com/a/494485) on how to set up and use the private key.
|
||||||
|
A sample `~/.ssh/config` file could look like this:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Host github.com
|
||||||
|
User git
|
||||||
|
IdentityFile ~/.ssh/free_librespot_private_key
|
||||||
|
```
|
||||||
|
|
||||||
|
If you do not want to use the fork of `librespot` convert the git dependency to a regular dependency by removing `git = "ssh://git@github.com/oSumAtrIX/free-librespot.git"` inside `Cargo.toml`.
|
||||||
|
|
||||||
|
To build this project you will need `Nightly Rust`. You can install it by following [rustup.rs](https://rustup.rs) instructions.
|
||||||
|
|
||||||
|
```bash
|
||||||
cargo build --release
|
cargo build --release
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -40,7 +57,8 @@ If you get a linker error, you might need to download the [standard libmp3lame](
|
||||||
|
|
||||||
## Usage/Examples
|
## Usage/Examples
|
||||||
|
|
||||||
To install and use DownOnSpot, edit the configuration file which is being created in the same directory as your shell on first launch.
|
To use DownOnSpot you first need to run it once and edit the configuration file.
|
||||||
|
The default configuration file will be created in the same directory as your shell.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ down_on_spot.exe
|
$ down_on_spot.exe
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue