Skip to content

Commit

Permalink
playlist: remove (proxy) from proxy path and change using server text
Browse files Browse the repository at this point in the history
  • Loading branch information
2bc4 committed Feb 18, 2024
1 parent 1cfa15b commit c025312
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/hls/playlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ impl Display for MasterPlaylist {

impl MasterPlaylist {
pub fn new(args: &Args, agent: &Agent) -> Result<Self> {
info!("Fetching playlist for channel {}", args.channel);
let low_latency = !args.no_low_latency;
let master_playlist = if let Some(ref servers) = args.servers {
Self::fetch_proxy_playlist(low_latency, servers, &args.codecs, &args.channel, agent)?
Expand Down Expand Up @@ -85,7 +86,6 @@ impl MasterPlaylist {
channel: &str,
agent: &Agent,
) -> Result<Self> {
info!("Fetching playlist for channel {channel}");
let access_token = PlaybackAccessToken::new(client_id, auth_token, channel, agent)?;
let url = format!(
"{base_url}{channel}.m3u8\
Expand Down Expand Up @@ -128,12 +128,11 @@ impl MasterPlaylist {
channel: &str,
agent: &Agent,
) -> Result<Self> {
info!("Fetching playlist for channel {channel} (proxy)");
let playlist = servers
.iter()
.find_map(|s| {
info!(
"Using server {}://{}",
"Using playlist proxy {}://{}",
s.scheme().unwrap_or("<unknown>"),
s.host().unwrap_or("<unknown>"),
);
Expand Down

0 comments on commit c025312

Please sign in to comment.