Added functionality to clean up transcoded source files

This commit is contained in:
Gregory Ballantine
2022-08-31 18:17:13 -04:00
parent b979850582
commit 32ffcdf202
2 changed files with 16 additions and 4 deletions

View File

@@ -22,7 +22,13 @@ impl Transcoder {
for i in ingest_files {
// copy the file to the archive
self.repository.archive_file(i);
self.repository.archive_file(&i);
// perform the video transcode
// TODO - self.transcode(i);
// remove the source file
self.repository.cleanup_file(&i);
}
}
}