Cleanup private and optinally public segments on a timer instead of after every save. Closes #254
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user