|
|
@@ -4,7 +4,6 @@ import (
|
|
|
"github.com/allanpk716/ChineseSubFinder/pkg/log_helper"
|
|
|
"github.com/allanpk716/ChineseSubFinder/pkg/logic/sub_timeline_fixer"
|
|
|
"github.com/allanpk716/ChineseSubFinder/pkg/settings"
|
|
|
- "github.com/prometheus/common/log"
|
|
|
"path/filepath"
|
|
|
"testing"
|
|
|
)
|
|
|
@@ -93,15 +92,15 @@ func Test_statistics_subs_score_is_match(t *testing.T) {
|
|
|
s := sub_timeline_fixer.NewSubTimelineFixerHelperEx(logger, *settings.NewTimelineFixerSettings())
|
|
|
bok, ffmpegInfo, audioVADInfos, infoBase, err := s.IsVideoCanExportSubtitleAndAudio(tt.args.videoFPath)
|
|
|
if err != nil {
|
|
|
- log.Errorln("IsVideoCanExportSubtitleAndAudio", err)
|
|
|
+ logger.Errorln("IsVideoCanExportSubtitleAndAudio", err)
|
|
|
return
|
|
|
}
|
|
|
if bok == false {
|
|
|
- log.Errorln("IsVideoCanExportSubtitleAndAudio", "bok == false")
|
|
|
+ logger.Errorln("IsVideoCanExportSubtitleAndAudio", "bok == false")
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- statistics_subs_score_is_match(s, ffmpegInfo, audioVADInfos, infoBase, tt.args.subSearchRootPath, filepath.Base(tt.args.videoFPath))
|
|
|
+ statistics_subs_score_is_match(logger, s, ffmpegInfo, audioVADInfos, infoBase, tt.args.subSearchRootPath, filepath.Base(tt.args.videoFPath))
|
|
|
})
|
|
|
}
|
|
|
}
|