Skip to content

Commit

Permalink
Error when channel ends with 'm'
Browse files Browse the repository at this point in the history
  • Loading branch information
GNURub committed Apr 27, 2020
1 parent 497c431 commit dbf26a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/hls/hls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit dbf26a7

Please sign in to comment.