From 8d3be0d8b623a405990448a5ea4fe471ab735ed7 Mon Sep 17 00:00:00 2001 From: horus Date: Sun, 19 Apr 2020 18:35:27 +0200 Subject: Update to get spoken language and minor upgrade the github handling. --- config.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.go') diff --git a/config.go b/config.go index cc4a366..43cdf8f 100644 --- a/config.go +++ b/config.go @@ -20,6 +20,9 @@ type Config struct { Delay int IgnoreRobotsTXT bool + BasicAuthUsername string + BasicAuthPassword string + Debug bool // sets log level to debug } @@ -98,5 +101,8 @@ func (c *Config) setsConfig() { c.Delay = viper.GetInt("Delay") c.IgnoreRobotsTXT = viper.GetBool("IgnoreRobotsTXT") + c.BasicAuthUsername = viper.GetString("BasicAuthUsername") + c.BasicAuthPassword = viper.GetString("BasicAuthPassword") + c.Debug = viper.GetBool("Debug") } -- cgit v1.2.3