diff --git a/VERSION b/VERSION index 9084fa2..238afc2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.0 +1.1.0.1 diff --git a/lineup.go b/lineup.go index 224405a..ecad8fd 100644 --- a/lineup.go +++ b/lineup.go @@ -100,12 +100,14 @@ func newLineup() *lineup { channels: make(map[int]hdHomeRunLineupItem), } - sdClient, sdClientErr := schedulesdirect.NewClient(viper.GetString("schedulesdirect.username"), viper.GetString("schedulesdirect.password")) - if sdClientErr != nil { - log.WithError(sdClientErr).Panicln("error setting up schedules direct client") - } + if viper.IsSet("schedulesdirect.username") && viper.IsSet("schedulesdirect.password") { + sdClient, sdClientErr := schedulesdirect.NewClient(viper.GetString("schedulesdirect.username"), viper.GetString("schedulesdirect.password")) + if sdClientErr != nil { + log.WithError(sdClientErr).Panicln("error setting up schedules direct client") + } - lineup.sd = sdClient + lineup.sd = sdClient + } for _, cfg := range cfgs { provider, providerErr := cfg.GetProvider()