Cleanup private and optinally public segments on a timer instead of after every save. Closes #254

This commit is contained in:
Gabe Kangas
2020-10-15 17:50:17 -07:00
parent 2d71337146
commit 8f740c4cb6
4 changed files with 93 additions and 54 deletions

View File

@@ -6,7 +6,6 @@ import (
"os"
"path/filepath"
"github.com/owncast/owncast/core/ffmpeg"
"github.com/owncast/owncast/core/playlist"
"github.com/owncast/owncast/utils"
log "github.com/sirupsen/logrus"
@@ -160,8 +159,6 @@ func (s *S3Storage) Save(filePath string, retryCount int) (string, error) {
}
}
ffmpeg.Cleanup(filepath.Dir(filePath))
return response.Location, nil
}