adept/adept.go
Gregory Ballantine 02dfc7c291
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
Finished the transcoding job
2022-08-31 23:53:51 -04:00

25 lines
493 B
Go

package main
import (
"github.com/spf13/viper"
"git.metaunix.net/BitGoblin/adept/config"
"git.metaunix.net/BitGoblin/adept/transcoder"
)
func main() {
config.LoadConfig()
r := transcoder.NewRepository(viper.GetString("transcoder.repository"))
ingestFiles := r.SearchIngest()
for _, i := range ingestFiles {
// archive file
r.ArchiveFile(i.Name())
// transcode file
transcoder.Transcode(i.Name())
// clean up source file
r.CleanupFile(i.Name())
}
}