diff --git a/src/model/serialize_streaming_server.rs b/src/model/serialize_streaming_server.rs index 8b783ea..cb78a6d 100644 --- a/src/model/serialize_streaming_server.rs +++ b/src/model/serialize_streaming_server.rs @@ -6,7 +6,7 @@ use stremio_core::models::common::Loadable; use stremio_core::models::streaming_server::{PlaybackDevice, Selected, StreamingServer}; use stremio_core::runtime::EnvError; use stremio_core::types::addon::ResourcePath; -use stremio_core::types::streaming_server::{NetworkInfo, Settings, Statistics}; +use stremio_core::types::streaming_server::{DeviceInfo, NetworkInfo, Settings, Statistics}; use url::Url; use wasm_bindgen::JsValue; @@ -22,6 +22,7 @@ mod model { pub remote_url: &'a Option, pub playback_devices: &'a Loadable, EnvError>, pub network_info: &'a Loadable, + pub device_info: &'a Loadable, pub torrent: Option<(&'a String, TorrentLoadable<'a>)>, pub statistics: Option<&'a Loadable>, } @@ -35,6 +36,7 @@ pub fn serialize_streaming_server(streaming_server: &StreamingServer) -> JsValue remote_url: &streaming_server.remote_url, playback_devices: &streaming_server.playback_devices, network_info: &streaming_server.network_info, + device_info: &streaming_server.device_info, torrent: streaming_server .torrent .as_ref()