Fix not adding size of the m3u8 to the ingress if session is known
This commit is contained in:
parent
669effd680
commit
77084edea4
1 changed files with 4 additions and 3 deletions
|
|
@ -113,11 +113,12 @@ func (h *hls) handleIngress(c echo.Context, next echo.HandlerFunc) error {
|
|||
// Register a new session
|
||||
reference := strings.TrimSuffix(filepath.Base(path), filepath.Ext(path))
|
||||
h.ingressCollector.RegisterAndActivate(path, reference, path, "")
|
||||
|
||||
h.ingressCollector.Ingress(path, headerSize(req.Header))
|
||||
h.ingressCollector.Ingress(path, r.size)
|
||||
h.ingressCollector.Extra(path, req.Header.Get("User-Agent"))
|
||||
}
|
||||
|
||||
h.ingressCollector.Ingress(path, headerSize(req.Header))
|
||||
h.ingressCollector.Ingress(path, r.size)
|
||||
|
||||
segments := r.getSegments(urlpath.Dir(path))
|
||||
|
||||
if len(segments) != 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue