Add option to filename parser to skip organized scenes (#1665)

Fixes #1219
This commit is contained in:
gitgiggety
2021-08-24 04:14:37 +02:00
committed by GitHub
parent 392fa3535c
commit 28b092885c
6 changed files with 35 additions and 2 deletions

View File

@@ -484,6 +484,11 @@ func (p *SceneFilenameParser) Parse(repo models.ReaderRepository) ([]*models.Sce
},
}
if p.ParserInput.IgnoreOrganized != nil && *p.ParserInput.IgnoreOrganized {
organized := false
sceneFilter.Organized = &organized
}
p.Filter.Q = nil
scenes, total, err := repo.Scene().Query(sceneFilter, p.Filter)