diff --git a/cmd/server.go b/cmd/server.go index e5d07f6..a574e02 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -46,6 +46,18 @@ var serverCmd = &cobra.Command{ log.Fatal(err) } + mediaClient, err := media.NewMediaClientFromViper() + if err != nil { + log.Fatal(err) + } + + new_buckets, err := mediaClient.Seed() + if err != nil { + log.Fatal(err) + } + + log.Printf("Seeded %d buckets.\n", len(new_buckets)) + RunServer() }, }