diff options
-rw-r--r-- | cmd/bookpipeline/main.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd/bookpipeline/main.go b/cmd/bookpipeline/main.go index 3ce1f15..402271e 100644 --- a/cmd/bookpipeline/main.go +++ b/cmd/bookpipeline/main.go @@ -416,15 +416,11 @@ func allOCRed(bookname string, conn Pipeliner) bool { return false } - // Full wipePattern can match things like 0000.png which getgbook - // can emit but aren't ocr-able - //wipePattern := regexp.MustCompile(`[0-9]{4,6}(.bin)?.png$`) - wipePattern := regexp.MustCompile(`[0-9]{6}(.bin)?.png$`) preprocessedPattern := regexp.MustCompile(`_bin[0-9].[0-9].png$`) atleastone := false for _, png := range objs { - if wipePattern.MatchString(png) || preprocessedPattern.MatchString(png) { + if preprocessedPattern.MatchString(png) { atleastone = true found := false b := strings.TrimSuffix(filepath.Base(png), ".png") |