From 66d4bb23218d937949e208c6a122e8ad68d2c183 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 20 Aug 2023 20:22:00 -0700 Subject: [PATCH] fix(video): fix local storage cleanup job to use new stream id --- core/storageproviders/local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/storageproviders/local.go b/core/storageproviders/local.go index da6db6c2c..31d517a46 100644 --- a/core/storageproviders/local.go +++ b/core/storageproviders/local.go @@ -93,7 +93,7 @@ func (s *LocalStorage) Cleanup() error { // Determine how many files we should keep on disk maxNumber := data.GetStreamLatencyLevel().SegmentCount buffer := 10 - baseDirectory := config.HLSStoragePath + baseDirectory := filepath.Join(config.HLSStoragePath, s.streamID) files, err := getAllFilesRecursive(baseDirectory) if err != nil {