Skip to content

Commit

Permalink
fix: base_url stremio-video support
Browse files Browse the repository at this point in the history
  • Loading branch information
kKaskak committed Nov 26, 2024
1 parent 4d6b954 commit 44c23a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/models/streaming_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ impl<E: Env + 'static> UpdateWithCtx<E> for StreamingServer {
&mut self.settings,
Loadable::Ready(settings.values.to_owned()),
);
let base_url_effects = eq_update(&mut self.base_url, Some(url.to_owned()));
let base_url_effects =
eq_update(&mut self.base_url, Some(settings.base_url.to_owned()));
let remote_url_effects = update_remote_url::<E>(
&mut self.remote_url,
&self.selected,
Expand Down
2 changes: 2 additions & 0 deletions stremio-core-web/src/model/serialize_streaming_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mod model {
pub struct StreamingServer<'a> {
pub selected: &'a Selected,
pub settings: &'a Loadable<Settings, EnvError>,
pub base_url: &'a Option<Url>,
pub remote_url: &'a Option<Url>,
pub playback_devices: &'a Loadable<Vec<PlaybackDevice>, EnvError>,
pub network_info: &'a Loadable<NetworkInfo, EnvError>,
Expand All @@ -38,6 +39,7 @@ pub fn serialize_streaming_server(
<JsValue as JsValueSerdeExt>::from_serde(&model::StreamingServer {
selected: &streaming_server.selected,
settings: &streaming_server.settings,
base_url: &streaming_server.base_url,
remote_url: &streaming_server.remote_url,
playback_devices: &streaming_server.playback_devices,
network_info: &streaming_server.network_info,
Expand Down

0 comments on commit 44c23a7

Please sign in to comment.