diff --git a/core/handle_image.go b/core/handle_image.go index 001a640..13fe643 100644 --- a/core/handle_image.go +++ b/core/handle_image.go @@ -232,7 +232,7 @@ func handleVerticalImage(currentImagePath string, height int) { vertical8KImageList = append(vertical8KImageList, currentImagePath) } else if height < 10000 { vertical9KImageList = append(vertical9KImageList, currentImagePath) - } else if height > 10000 { + } else if height >= 10000 { // 提示请忽略 verticalHKImageList = append(verticalHKImageList, currentImagePath) } } @@ -280,7 +280,7 @@ func handleHorizontalImage(currentImagePath string, width int, height int) { horizontal8KImageList = append(horizontal8KImageList, currentImagePath) } else if width < 10000 { horizontal9KImageList = append(horizontal9KImageList, currentImagePath) - } else if width > 10000 { + } else if width >= 10000 { // 提示请忽略 horizontalHKImageList = append(horizontalHKImageList, currentImagePath) } } diff --git a/main.go b/main.go index 46c9ea8..5ecd837 100644 --- a/main.go +++ b/main.go @@ -18,15 +18,16 @@ func main() { fmt.Println("=== 获取当前路径异常", err) return } + rootDir = "E:\\DGD\\UnHandleHentaiImage" scanner := core.FileScanner{} scanner.DoScan(rootDir) scanner.DoFilter() if len(vars.GlobalImagePathList) > 0 { core.DoHandleImage(rootDir) } - if len(vars.GlobalVideoPathList) > 0 { - core.DoHandleVideo(rootDir) - } + //if len(vars.GlobalVideoPathList) > 0 { + // core.DoHandleVideo(rootDir) + //} fmt.Println("=== 5s后自动退出") time.Sleep(time.Second * 5) }