happy linting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Marvin Steadfast 2020-12-09 08:38:00 +01:00
parent 82e99c032b
commit 385b70bb2b

View File

@ -15,12 +15,12 @@ import (
"github.com/rs/zerolog/log"
)
// Logic Jellyfin URL
// Logic Jellyfin URL.
type Logic struct {
BaseURL string
}
// PublicInfo Chromecast configuration Payload
// PublicInfo Chromecast configuration Payload.
type PublicInfo struct {
ID string
LocalAddress string
@ -69,8 +69,10 @@ func (l Logic) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
url := os.Getenv("JELLYFIN_URL")
jd.LocalAddress = url
nd, err := json.Marshal(jd)
if err != nil {
logger.Error().Msg(err.Error())