Fix not adding size of the m3u8 to the ingress if session is known

This commit is contained in:
Ingo Oppermann 2022-07-13 18:39:19 +02:00
parent 669effd680
commit 77084edea4
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -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 {