Added log messages to signify a transcoding loop has started/ended
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Gregory Ballantine 2023-03-29 20:25:52 -04:00
parent a7cc2bc771
commit 6371417234

View File

@ -31,6 +31,10 @@ impl Transcoder {
if ingest_files.len() < 1 {
info!("There were no files found in ingest to transcode; skipping run.");
} else {
// log that the transcoder is starting up
info!("Found {} files in ingest to transcode. Standby...", ingest_files.len());
// loop through each file found in ingest
for i in ingest_files {
let ingest_path = Path::new(&self.repository.ingest_dir).join(&i);
if io::is_file_locked(&ingest_path.to_str().unwrap()) {
@ -47,6 +51,9 @@ impl Transcoder {
// remove the source file
self.repository.cleanup_file(&i);
}
// let the user know the transcode has finished
info!("Finished transcoding. Sleeping...");
}
// put the loop to sleep for X minutes