mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
commit
29ec49b74c
1 changed files with 6 additions and 5 deletions
|
@ -8,7 +8,8 @@ async fn main() {
|
||||||
let name = "Librespot";
|
let name = "Librespot";
|
||||||
let device_id = hex::encode(Sha1::digest(name.as_bytes()));
|
let device_id = hex::encode(Sha1::digest(name.as_bytes()));
|
||||||
|
|
||||||
let mut server = librespot_discovery::Discovery::builder(device_id, SessionConfig::default().client_id)
|
let mut server =
|
||||||
|
librespot_discovery::Discovery::builder(device_id, SessionConfig::default().client_id)
|
||||||
.name(name)
|
.name(name)
|
||||||
.device_type(DeviceType::Computer)
|
.device_type(DeviceType::Computer)
|
||||||
.launch()
|
.launch()
|
||||||
|
|
Loading…
Reference in a new issue