func StudioGalleries(p *models.Studio, paths []string, aliases []string, rw models.GalleryReaderWriter, cache *match.Cache) error {
	t := getStudioTagger(p, aliases, cache)

	for _, tt := range t {
		if err := tt.tagGalleries(paths, rw, func(subjectID, otherID int) (bool, error) {
			return addGalleryStudio(rw, otherID, subjectID)
		}); err != nil {
			return err
		}
	}

	return nil
}
// StudioGalleries searches for galleries whose path matches the provided studio name and tags the gallery with the studio, if studio is not already set on the gallery.
StudioGalleries searches for galleries whose path matches the provided studio name and tags the gallery with the studio, if studio is not already set on the gallery.
// StudioGalleries searches for galleries whose path matches the provided studio name and tags the gallery with the studio if studio is not already set on the gallery .
func StudioGalleries(p *models.Studio, paths []string, aliases []string, rw models.GalleryReaderWriter, cache *match.Cache) error {
	t := getStudioTagger(p, aliases, cache)
	for _, tt := range t {
		if err := tt.tagGalleries(paths, rw, func(subjectID, otherID int) (bool, error) {
			return addGalleryStudio(rw, otherID, subjectID)
		}); err != nil {
			return err
		}
	}
	return nil
}
func StudioGalleries ( p * models . Studio , paths [ ] string , aliases [ ] string , rw models . GalleryReaderWriter , cache * match . Cache ) error { t := getStudioTagger ( p , aliases , cache ) for _ , tt := range t { if err := tt . tagGalleries ( paths , rw , func ( subjectID , otherID int ) ( bool , error ) { return addGalleryStudio ( rw , otherID , subjectID ) } ) ; err != nil { return err } } return nil }
StudioGalleries searches for galleries whose path matches the provided studio name and tags the gallery with the studio, if studio is not already set on the gallery.
StudioGalleries searches for galleries whose path matches the provided studio name and tags the gallery with the studio if studio is not already set on the gallery .