Skip to content

Commit

Permalink
Merge pull request #699 from Stremio/proxy_streams_enabled
Browse files Browse the repository at this point in the history
proxy_streams_enabled added to streaming server settings
  • Loading branch information
unclekingpin authored Jun 23, 2024
2 parents 4ff08e3 + ece1175 commit 9f5b46a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/streaming_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ fn set_settings<E: Env + 'static>(url: &Url, settings: &Settings) -> Effect {
bt_download_speed_hard_limit: f64,
bt_min_peers_for_stable: u64,
remote_https: Option<String>,
proxy_streams_enabled: bool,
transcode_profile: Option<String>,
}
let body = Body {
Expand All @@ -496,6 +497,7 @@ fn set_settings<E: Env + 'static>(url: &Url, settings: &Settings) -> Effect {
bt_download_speed_hard_limit: settings.bt_download_speed_hard_limit.to_owned(),
bt_min_peers_for_stable: settings.bt_min_peers_for_stable.to_owned(),
remote_https: settings.remote_https.to_owned(),
proxy_streams_enabled: settings.proxy_streams_enabled.to_owned(),
transcode_profile: settings.transcode_profile.to_owned(),
};
let endpoint = url.join("settings").expect("url builder failed");
Expand Down
1 change: 1 addition & 0 deletions src/types/streaming_server/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub struct Settings {
#[serde_as(deserialize_as = "DefaultOnError")]
pub transcode_profile: Option<String>,
pub cache_size: Option<f64>,
pub proxy_streams_enabled: bool,
pub bt_max_connections: u64,
pub bt_handshake_timeout: u64,
pub bt_request_timeout: u64,
Expand Down
1 change: 1 addition & 0 deletions src/unit_tests/streaming_server/remote_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const STREAMING_SERVER_SETTINGS: StreamingServerSettings = StreamingServerSettin
bt_download_speed_soft_limit: 0.0,
bt_download_speed_hard_limit: 0.0,
bt_min_peers_for_stable: 0,
proxy_streams_enabled: false,
remote_https: None,
transcode_profile: None,
};
Expand Down

0 comments on commit 9f5b46a

Please sign in to comment.