Skip to content

Commit

Permalink
doc(deep_links): add comment about streaming_server_url
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Nov 20, 2023
1 parent be8ebd6 commit cdacf71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/deep_links/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ impl From<(&Stream, Option<&Url>, &Settings)> for ExternalPlayerLink {
///
/// [`StreamingServer::base_url`]: crate::models::streaming_server::StreamingServer::base_url
fn from((stream, streaming_server_url, settings): (&Stream, Option<&Url>, &Settings)) -> Self {
// Using the streaming_server_url from settings if streaming_server is reachable
let streaming_server_url = streaming_server_url.map(|_| &settings.streaming_server_url);
let http_regex = Regex::new(r"https?://").unwrap();
let download = stream.download_url();
Expand Down

0 comments on commit cdacf71

Please sign in to comment.