Fix: Vod session handling (#717)

* Fix: Vod session handling
* Review fixes
This commit is contained in:
euzu
2026-04-13 12:26:44 +02:00
committed by GitHub
parent fccf1a4890
commit edc0ceb05e
36 changed files with 1432 additions and 335 deletions
+10 -2
View File
@@ -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);