func TagScenes(p *models.Tag, paths []string, aliases []string, rw models.SceneReaderWriter, cache *match.Cache) error {
	t := getTagTaggers(p, aliases, cache)

	for _, tt := range t {
		if err := tt.tagScenes(paths, rw, func(subjectID, otherID int) (bool, error) {
			return scene.AddTag(rw, otherID, subjectID)
		}); err != nil {
			return err
		}
	}
	return nil
}
// TagScenes searches for scenes whose path matches the provided tag name and tags the scene with the tag.
TagScenes searches for scenes whose path matches the provided tag name and tags the scene with the tag.
// TagScenes searches for scenes whose path matches the provided tag name and tags the scene with the tag .
func TagScenes(p *models.Tag, paths []string, aliases []string, rw models.SceneReaderWriter, cache *match.Cache) error {
	t := getTagTaggers(p, aliases, cache)
	for _, tt := range t {
		if err := tt.tagScenes(paths, rw, func(subjectID, otherID int) (bool, error) {
			return scene.AddTag(rw, otherID, subjectID)
		}); err != nil {
			return err
		}
	}
	return nil
}
func TagScenes ( p * models . Tag , paths [ ] string , aliases [ ] string , rw models . SceneReaderWriter , cache * match . Cache ) error { t := getTagTaggers ( p , aliases , cache ) for _ , tt := range t { if err := tt . tagScenes ( paths , rw , func ( subjectID , otherID int ) ( bool , error ) { return scene . AddTag ( rw , otherID , subjectID ) } ) ; err != nil { return err } } return nil }
TagScenes searches for scenes whose path matches the provided tag name and tags the scene with the tag.
TagScenes searches for scenes whose path matches the provided tag name and tags the scene with the tag .