delete also vtt files

This commit is contained in:
Jonathan Baecker 2024-09-29 16:56:48 +02:00
parent 7b021883bc
commit baf25c2093

View File

@ -392,7 +392,11 @@ fn delete_ts<P: AsRef<Path> + Clone + std::fmt::Debug>(
) -> io::Result<()> { ) -> io::Result<()> {
let ts_file = params let ts_file = params
.iter() .iter()
.filter(|f| f.to_lowercase().ends_with(".ts") || f.to_lowercase().ends_with(".m3u8")) .filter(|f| {
f.to_lowercase().ends_with(".ts")
|| f.to_lowercase().ends_with(".m3u8")
|| f.to_lowercase().ends_with(".vtt")
})
.collect::<Vec<&String>>(); .collect::<Vec<&String>>();
for entry in WalkDir::new(path.clone()) for entry in WalkDir::new(path.clone())