From dbf26a7b34b55bfa13b066b396908c44d9030efd Mon Sep 17 00:00:00 2001 From: Ruben Cid Date: Mon, 27 Apr 2020 16:19:14 +0200 Subject: [PATCH] Error when channel ends with 'm' --- protocol/hls/hls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/hls/hls.go b/protocol/hls/hls.go index 94c60c22..f8cf0f83 100755 --- a/protocol/hls/hls.go +++ b/protocol/hls/hls.go @@ -144,7 +144,7 @@ func (server *Server) handle(w http.ResponseWriter, r *http.Request) { func (server *Server) parseM3u8(pathstr string) (key string, err error) { pathstr = strings.TrimLeft(pathstr, "/") - key = strings.TrimRight(pathstr, path.Ext(pathstr)) + key = strings.Split(pathstr, path.Ext(pathstr))[0] return }