delete also vtt files
This commit is contained in:
parent
7b021883bc
commit
baf25c2093
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user