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
+5
View File
@@ -0,0 +1,5 @@
Sample configuration.
Login user credentials
test: test.secret
nobody: nobody.secret
+2 -2
View File
@@ -1,13 +1,13 @@
server:
- name: default
protocol: http
host: 10.41.41.89
host: ${env:TULIPROX_HOST_IP}
port: "8901"
timezone: Europe/Paris
message: Welcome to m3u-filter
- name: external
protocol: https
host: my-own-host.com
host: ${env:TULIPROX_DOMAIN}
port: "443"
timezone: Europe/Paris
message: Welcome to m3u-filter
+3
View File
@@ -30,3 +30,6 @@ mappings:
- filter: "!business!"
script: |
@Group = "News"
- filter: 'Input = "iptv-org"'
script: |
@Caption = concat(@Caption, " (iptv-org)")
-4
View File
@@ -12,10 +12,6 @@ sources:
- name: iptv-org
type: m3u
url: https://iptv-org.github.io/iptv/countries/uk.m3u
suffix:
field: title
value: "(iptv-org)"
targets:
- name: iptv-org
output:
- type: xtream
+2 -2
View File
@@ -1,2 +1,2 @@
test: $argon2id$v=19$m=19456,t=2,p=1$QUpBWW5uellicTFRUU1tR0RVYVVEUTN5UEJDaWNWQnI3Rm1aNU1xZ3VUSWc3djZJNjk5cGlkOWlZTGFHajllSw$3HHEnLmHW07pjE97Inh85RTi6VN6wbV27sT2hHzGgXk
nobody: $argon2id$v=$argon2id$v=19$m=19456,t=2,p=1$Y2FROE83ZDQ1c2VaYmJ4VU9YdHpuZ2c2ZUwzVkhlRWFpQk80YVhNMEJCSlhmYk8wRE16UEtWemV2dk81cmNaNw$BB81wmEm/faku/dXenC9wE7z0/pt40l4YGh8jl9G2ko
test: $argon2id$v=19$m=19456,t=2,p=1$S21mQmhrczJxbGNONmFCY0hqU20zVXU1bU42MkRXRlJGcHNYZnJXRWtOek05ejFxMGh1NjRMbTVmVTZQRGFyQg$MOybv7fXMILqkpc7CnGRxQvvez57HpaimFOI2xT5koQ
nobody: $argon2id$v=19$m=19456,t=2,p=1$d3pmWFBQbXdiWGtybm5BMXlGcEpId3BxeUhSQjZSaDBIZHRkRGZFaks4ZXpBUHlyb2dkc3JENHNvVzNwb0JMSQ$sIEu5aJkR5boMmZTAeHFQGRKI8rIVVbpxD+faDWQCm0
-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,