Advertisement
Guest User

Untitled

a guest
Jun 28th, 2022
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. 0. Install rust toolchain (rustup is the simplest way I guess)
  2. 1. Download latest ncspot release (git clone --branch v0.10.0 [email protected]:hrkfdn/ncspot.git)
  3. 2. Download compatible librespot version (git clone --branch v0.4.1 [email protected]:librespot-org/librespot.git) in ncspot folder:
  4. ncspot/
  5. |---librespot/
  6. |---Cargo.toml
  7. |---...
  8. 3. Change the following line in the librespot/src/core/connection/handshake.rs
  9. - .set_product(protocol::keyexchange::Product::PRODUCT_PARTNER);
  10. + .set_product(protocol::keyexchange::Product::PRODUCT_CLIENT);
  11. 4. Change path to librespot in Cargo.toml
  12. -librespot-core = "0.4.0"
  13. -librespot-playback = "0.4.0"
  14. -librespot-protocol = "0.4.0"
  15. +librespot-core = { path="librespot/core" }
  16. +librespot-playback = { path="librespot/playback" }
  17. +librespot-protocol = { path="librespot/protocol" }
  18. 5. Build ncspot: cargo build --release (binary will be in the target/release folder)
  19. 6. Set bitrate = 160 in ~/.config/ncspot/config.toml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement