You've already forked VptPassiveAdapter
s3 adapter
This commit is contained in:
@ -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()))
|
||||
|
Reference in New Issue
Block a user