mirror of
https://github.com/euzu/tuliprox.git
synced 2026-09-29 20:42:31 +02:00
@@ -1,6 +1,6 @@
|
||||
use std::sync::Arc;
|
||||
use shared::error::{TuliproxError};
|
||||
use crate::model::{AppConfig, ConfigInput};
|
||||
use crate::model::{AppConfig, ConfigInput, ConfigInputFlags};
|
||||
use shared::model::{LiveStreamProperties, StreamProperties, XtreamCluster, XtreamPlaylistItem};
|
||||
use crate::repository::{get_input_storage_path, persist_input_live_info, BPlusTreeQuery, xtream_get_file_path};
|
||||
use crate::utils::{debug_if_enabled};
|
||||
@@ -71,9 +71,8 @@ pub async fn update_live_stream_metadata(
|
||||
let input_url = input.url.as_str();
|
||||
let username = input.username.as_deref().unwrap_or("");
|
||||
let password = input.password.as_deref().unwrap_or("");
|
||||
let opts = input.options.as_ref();
|
||||
let use_prefix = opts.is_none_or(|o| o.xtream_live_stream_use_prefix);
|
||||
let no_ext = opts.is_some_and(|o| o.xtream_live_stream_without_extension);
|
||||
let use_prefix = input.has_flag(ConfigInputFlags::XtreamLiveStreamUsePrefix);
|
||||
let no_ext = input.has_flag(ConfigInputFlags::XtreamLiveStreamWithoutExtension);
|
||||
|
||||
// We generate the URL to probe directly on the provider
|
||||
let stream_url = create_xtream_url(
|
||||
|
||||
Reference in New Issue
Block a user