This commit is contained in:
parent
82e99c032b
commit
385b70bb2b
6
main.go
6
main.go
@ -15,12 +15,12 @@ import (
|
|||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Logic Jellyfin URL
|
// Logic Jellyfin URL.
|
||||||
type Logic struct {
|
type Logic struct {
|
||||||
BaseURL string
|
BaseURL string
|
||||||
}
|
}
|
||||||
|
|
||||||
// PublicInfo Chromecast configuration Payload
|
// PublicInfo Chromecast configuration Payload.
|
||||||
type PublicInfo struct {
|
type PublicInfo struct {
|
||||||
ID string
|
ID string
|
||||||
LocalAddress string
|
LocalAddress string
|
||||||
@ -69,8 +69,10 @@ func (l Logic) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
url := os.Getenv("JELLYFIN_URL")
|
url := os.Getenv("JELLYFIN_URL")
|
||||||
jd.LocalAddress = url
|
jd.LocalAddress = url
|
||||||
|
|
||||||
nd, err := json.Marshal(jd)
|
nd, err := json.Marshal(jd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Error().Msg(err.Error())
|
logger.Error().Msg(err.Error())
|
||||||
|
Loading…
Reference in New Issue
Block a user