2022-08-31 19:56:06 -04:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/viper"
|
|
|
|
|
|
|
|
"git.metaunix.net/BitGoblin/adept/config"
|
|
|
|
"git.metaunix.net/BitGoblin/adept/transcoder"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
config.LoadConfig()
|
|
|
|
|
2022-08-31 22:41:05 -04:00
|
|
|
r := transcoder.NewRepository(viper.GetString("transcoder.repository"))
|
|
|
|
|
|
|
|
ingestFiles := r.SearchIngest()
|
|
|
|
for _, i := range ingestFiles {
|
|
|
|
// archive file
|
|
|
|
r.ArchiveFile(i.Name())
|
|
|
|
// transcode file
|
|
|
|
// TODO - t.Transcode(i.Name())
|
|
|
|
// clean up source file
|
2022-08-31 22:50:42 -04:00
|
|
|
r.CleanupFile(i.Name())
|
2022-08-31 22:41:05 -04:00
|
|
|
}
|
2022-08-31 19:56:06 -04:00
|
|
|
}
|