s3 adapter

This commit is contained in:
2025-02-24 18:10:41 +08:00
parent 9b8f61e8e1
commit 9bf07d3127
6 changed files with 176 additions and 18 deletions

View File

@ -41,7 +41,7 @@ func (l *LocalAdapter) GetFileList(dirPath string, relDt time.Time) ([]dto.File,
if err != nil {
continue
}
if startTime.Equal(stopTime) {
if startTime.Equal(stopTime) || stopTime.IsZero() {
// 如果文件名没有时间戳,则认为该文件是未录制完成的
// 尝试读取一下视频信息
duration, err := util.GetVideoDuration(path.Join(l.StorageConfig.Path, dirPath, file.Name()))