fix: drop authentication for EPG endpoint, as XMLTV clients auto-fetch url-tvg without creds

This commit is contained in:
2026-05-06 11:45:36 +02:00
parent 1e8a4e7251
commit 9eaabdae9a
+1 -1
View File
@@ -72,7 +72,7 @@ func main() {
mux := http.NewServeMux()
mux.HandleFunc("/healthz", healthz(refresher))
mux.HandleFunc("/playlist", basicAuth(cfg, servePlaylist(cfg, refresher)))
mux.HandleFunc("/epg", basicAuth(cfg, serveEPG(cfg, refresher)))
mux.HandleFunc("/epg", serveEPG(cfg, refresher)) // unauthenticated — XMLTV clients auto-fetch url-tvg without creds
mux.HandleFunc("/", basicAuth(cfg, servePlaylist(cfg, refresher))) // alias
srv := &http.Server{Addr: cfg.ListenAddr, Handler: mux}