Browse Source

Error when channel ends with 'm'

pull/97/head
Ruben Cid 6 years ago
parent
commit
dbf26a7b34
  1. 2
      protocol/hls/hls.go

2
protocol/hls/hls.go

@ -144,7 +144,7 @@ func (server *Server) handle(w http.ResponseWriter, r *http.Request) { @@ -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
}

Loading…
Cancel
Save