fix m3u file no auth

This commit is contained in:
YouROK
2021-04-15 10:18:46 +03:00
parent a45680416a
commit 299bb32750

View File

@@ -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
}