feat: Add YouTube config
This commit is contained in:
parent
55621a6963
commit
c7f038e41e
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user