This commit is contained in:
2025-02-15 21:06:59 +08:00
parent e43f35162e
commit 42be232719
2 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -232,7 +232,7 @@ func handleVerticalImage(currentImagePath string, height int) {
vertical8KImageList = append(vertical8KImageList, currentImagePath) vertical8KImageList = append(vertical8KImageList, currentImagePath)
} else if height < 10000 { } else if height < 10000 {
vertical9KImageList = append(vertical9KImageList, currentImagePath) vertical9KImageList = append(vertical9KImageList, currentImagePath)
} else if height > 10000 { } else if height >= 10000 { // 提示请忽略
verticalHKImageList = append(verticalHKImageList, currentImagePath) verticalHKImageList = append(verticalHKImageList, currentImagePath)
} }
} }
@@ -280,7 +280,7 @@ func handleHorizontalImage(currentImagePath string, width int, height int) {
horizontal8KImageList = append(horizontal8KImageList, currentImagePath) horizontal8KImageList = append(horizontal8KImageList, currentImagePath)
} else if width < 10000 { } else if width < 10000 {
horizontal9KImageList = append(horizontal9KImageList, currentImagePath) horizontal9KImageList = append(horizontal9KImageList, currentImagePath)
} else if width > 10000 { } else if width >= 10000 { // 提示请忽略
horizontalHKImageList = append(horizontalHKImageList, currentImagePath) horizontalHKImageList = append(horizontalHKImageList, currentImagePath)
} }
} }
+4 -3
View File
@@ -18,15 +18,16 @@ func main() {
fmt.Println("=== 获取当前路径异常", err) fmt.Println("=== 获取当前路径异常", err)
return return
} }
rootDir = "E:\\DGD\\UnHandleHentaiImage"
scanner := core.FileScanner{} scanner := core.FileScanner{}
scanner.DoScan(rootDir) scanner.DoScan(rootDir)
scanner.DoFilter() scanner.DoFilter()
if len(vars.GlobalImagePathList) > 0 { if len(vars.GlobalImagePathList) > 0 {
core.DoHandleImage(rootDir) core.DoHandleImage(rootDir)
} }
if len(vars.GlobalVideoPathList) > 0 { //if len(vars.GlobalVideoPathList) > 0 {
core.DoHandleVideo(rootDir) // core.DoHandleVideo(rootDir)
} //}
fmt.Println("=== 5s后自动退出") fmt.Println("=== 5s后自动退出")
time.Sleep(time.Second * 5) time.Sleep(time.Second * 5)
} }