From 299bb327502800286d8e8e9d310d6058f51249b0 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Thu, 15 Apr 2021 10:18:46 +0300 Subject: [PATCH] fix m3u file no auth --- server/web/api/stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/web/api/stream.go b/server/web/api/stream.go index c87f0a4..65253f2 100644 --- a/server/web/api/stream.go +++ b/server/web/api/stream.go @@ -188,7 +188,7 @@ func streamNoAuth(c *gin.Context) { index = ind } } - if index == -1 { // if file index not set and play file exec + if index == -1 && play { // if file index not set and play file exec c.AbortWithError(http.StatusBadRequest, errors.New("\"index\" is empty or wrong")) return }