mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-20 06:42:20 +02:00
Fix: Vod session handling (#717)
* Fix: Vod session handling * Review fixes
This commit is contained in:
@@ -389,8 +389,16 @@ async fn playlist_download_from_input(
|
||||
let cache_duration = input.cache_duration_seconds;
|
||||
|
||||
// Ensure data directory exists
|
||||
if !storage_path.exists() {
|
||||
let _ = std::fs::create_dir_all(&storage_path);
|
||||
match tokio::fs::try_exists(&storage_path).await {
|
||||
Ok(false) => {
|
||||
if let Err(err) = tokio::fs::create_dir_all(&storage_path).await {
|
||||
warn!("Failed to create input storage directory '{}': {err}", storage_path.display());
|
||||
}
|
||||
}
|
||||
Err(err) => {
|
||||
warn!("Failed to check existence of input storage directory '{}': {err}", storage_path.display());
|
||||
}
|
||||
Ok(true) => {}
|
||||
}
|
||||
|
||||
let hybrid = is_hybrid_m3u_xtream(input);
|
||||
|
||||
Reference in New Issue
Block a user