This is a UPnP client library for Rust.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bump version code

+5 -5
+1 -1
Cargo.toml
··· 1 1 [package] 2 2 name = "upnp-client" 3 - version = "0.1.8" 3 + version = "0.1.9" 4 4 edition = "2021" 5 5 repository = "https://github.com/tsirysndr/upnp-client-rs" 6 6 license = "MIT"
+4 -4
README.md
··· 42 42 43 43 #[tokio::main] 44 44 async fn main() -> Result<(), Box<dyn std::error::Error>> { 45 - let devices = discover_pnp_locations(); 45 + let devices = discover_pnp_locations().await?; 46 46 tokio::pin!(devices); 47 47 48 48 while let Some(device) = devices.next().await { ··· 107 107 108 108 #[tokio::main] 109 109 async fn main() -> Result<(), Box<dyn std::error::Error>> { 110 - let devices = discover_pnp_locations(); 110 + let devices = discover_pnp_locations().await?; 111 111 tokio::pin!(devices); 112 112 113 113 let mut kodi_device: Option<Device> = None; ··· 120 120 } 121 121 122 122 let kodi_device = kodi_device.unwrap(); 123 - let device_client = DeviceClient::new(&kodi_device.location).connect().await?; 123 + let device_client = DeviceClient::new(&kodi_device.location)?.connect().await?; 124 124 let media_renderer = MediaRendererClient::new(device_client); 125 125 126 126 let options = LoadOptions { ··· 164 164 - [UPnP AV ContentDirectory v3 Service](http://upnp.org/specs/av/UPnP-av-ContentDirectory-v3-Service.pdf) 165 165 166 166 ### License 167 - MIT 167 + MIT