feat: Add YouTube config

This commit is contained in:
Eugen Eisler 2024-08-17 16:17:56 +02:00
parent 55621a6963
commit c7f038e41e
2 changed files with 6 additions and 2 deletions

View File

@ -106,6 +106,10 @@ func (o *Fabric) Setup() (err error) {
return return
} }
if err = o.YouTube.Setup(); err != nil {
return
}
if err = o.PatternsLoader.Setup(); err != nil { if err = o.PatternsLoader.Setup(); err != nil {
return return
} }

View File

@ -14,12 +14,12 @@ func NewYouTube() (ret *YouTube) {
EnvNamePrefix: common.BuildEnvVariablePrefix(label), EnvNamePrefix: common.BuildEnvVariablePrefix(label),
} }
ret.ApiKey = ret.AddSetting("ApiKey", false) ret.ApiKey = ret.AddSetupQuestion("API key", false)
return return
} }
type YouTube struct { type YouTube struct {
*common.Configurable *common.Configurable
ApiKey *common.Setting ApiKey *common.SetupQuestion
} }