mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-27 09:12:35 +01:00
Hls request handling for m3u fixed,
Updated example config
This commit is contained in:
@@ -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, ¶ms.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, ¶ms.token) {
|
||||
Some((Some(session_token), hls_url)) if session_token == session.token => hls_url,
|
||||
_ => return axum::http::StatusCode::BAD_REQUEST.into_response(),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user