From 37677d1ef9da76dbed208ed28420c6b6f9cd573b Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com> Date: Fri, 15 Nov 2019 12:16:26 +0000 Subject: [PATCH] fixup! Add get_simple_data_table Signed-off-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com> --- pkg/routes/xtream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/routes/xtream.go b/pkg/routes/xtream.go index 66f7548..7a8455b 100644 --- a/pkg/routes/xtream.go +++ b/pkg/routes/xtream.go @@ -205,7 +205,7 @@ func (p *proxy) xtreamPlayerAPI(c *gin.Context, q url.Values) { return } limit := 0 - if len(q["limit"][0]) > 0 { + if len(q["limit"]) > 0 { limit, err = strconv.Atoi(q["limit"][0]) if err != nil { c.AbortWithError(http.StatusInternalServerError, err)