mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Add rescan option to overflow dropdown (#1119)
* Make scan options optional * Add scene rescan * Add image rescan * Add gallery rescan * Add changelog
This commit is contained in:
@@ -1044,6 +1044,12 @@ func walkFilesToScan(s *models.StashConfig, f filepath.WalkFunc) error {
|
||||
excludeVidRegex := generateRegexps(config.GetExcludes())
|
||||
excludeImgRegex := generateRegexps(config.GetImageExcludes())
|
||||
|
||||
// don't scan zip images directly
|
||||
if image.IsZipPath(s.Path) {
|
||||
logger.Warnf("Cannot rescan zip image %s. Rescan zip gallery instead.", s.Path)
|
||||
return nil
|
||||
}
|
||||
|
||||
generatedPath := config.GetGeneratedPath()
|
||||
|
||||
return utils.SymWalk(s.Path, func(path string, info os.FileInfo, err error) error {
|
||||
|
||||
Reference in New Issue
Block a user