Hls request handling for m3u fixed,

Updated example config
This commit is contained in:
euzu
2025-05-27 12:42:11 +02:00
parent bf4a1d4312
commit cd392fed90
7 changed files with 13 additions and 20 deletions
-11
View File
@@ -119,17 +119,6 @@ async fn hls_api_stream(
return create_custom_video_stream_response(&app_state.config, CustomVideoStreamType::ProviderConnectionsExhausted).into_response();
}
// let hls_url = if let Some((session_token_opt, hls_url)) = get_hls_session_token_and_url_from_token(&app_state.config.t_encrypt_secret, &params.token) {
// if let Some(session_token) = session_token_opt {
// if session.token != session_token {
// return axum::http::StatusCode::BAD_REQUEST.into_response();
// }
// }
// hls_url
// } else {
// return axum::http::StatusCode::BAD_REQUEST.into_response();
// };
let hls_url = match get_hls_session_token_and_url_from_token(&app_state.config.t_encrypt_secret, &params.token) {
Some((Some(session_token), hls_url)) if session_token == session.token => hls_url,
_ => return axum::http::StatusCode::BAD_REQUEST.into_response(),
+1 -1
View File
@@ -115,7 +115,7 @@ async fn m3u_api_stream(
item: &pli,
provider_id: pli.get_provider_id(),
cluster,
target_type: TargetType::Xtream,
target_type: TargetType::M3u,
target,
input,
user: &user,