feat: Add YouTube config
This commit is contained in:
parent
55621a6963
commit
c7f038e41e
@ -106,6 +106,10 @@ func (o *Fabric) Setup() (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
if err = o.YouTube.Setup(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
if err = o.PatternsLoader.Setup(); err != nil {
|
||||
return
|
||||
}
|
||||
|
@ -14,12 +14,12 @@ func NewYouTube() (ret *YouTube) {
|
||||
EnvNamePrefix: common.BuildEnvVariablePrefix(label),
|
||||
}
|
||||
|
||||
ret.ApiKey = ret.AddSetting("ApiKey", false)
|
||||
ret.ApiKey = ret.AddSetupQuestion("API key", false)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
type YouTube struct {
|
||||
*common.Configurable
|
||||
ApiKey *common.Setting
|
||||
ApiKey *common.SetupQuestion
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user