fix(video): fix local storage cleanup job to use new stream id

This commit is contained in:
Gabe Kangas 2023-08-20 20:22:00 -07:00
parent 6aacd7bfce
commit 66d4bb2321
No known key found for this signature in database
GPG key ID: 4345B2060657F330

View file

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