func GalleryStudios(s *models.Gallery, rw models.GalleryReaderWriter, studioReader models.StudioReader, cache *match.Cache) error {
	if s.StudioID.Valid {
		// don't modify
		return nil
	}

	t := getGalleryFileTagger(s, cache)

	return t.tagStudios(studioReader, func(subjectID, otherID int) (bool, error) {
		return addGalleryStudio(rw, subjectID, otherID)
	})
}
// GalleryStudios tags the provided gallery with the first studio whose name matches the gallery's path.
//
// Gallerys will not be tagged if studio is already set.
GalleryStudios tags the provided gallery with the first studio whose name matches the gallery's path.

Gallerys will not be tagged if studio is already set.
// GalleryStudios tags the provided gallery with the first studio whose name matches the gallery ' s path . // // Gallerys will not be tagged if studio is already set .
func GalleryStudios(s *models.Gallery, rw models.GalleryReaderWriter, studioReader models.StudioReader, cache *match.Cache) error {
	if s.StudioID.Valid {
		return nil
	}
	t := getGalleryFileTagger(s, cache)
	return t.tagStudios(studioReader, func(subjectID, otherID int) (bool, error) {
		return addGalleryStudio(rw, subjectID, otherID)
	})
}
func GalleryStudios ( s * models . Gallery , rw models . GalleryReaderWriter , studioReader models . StudioReader , cache * match . Cache ) error { if s . StudioID . Valid { return nil } t := getGalleryFileTagger ( s , cache ) return t . tagStudios ( studioReader , func ( subjectID , otherID int ) ( bool , error ) { return addGalleryStudio ( rw , subjectID , otherID ) } ) }
GalleryStudios tags the provided gallery with the first studio whose name matches the gallery's path.
GalleryStudios tags the provided gallery with the first studio whose name matches the gallery ' s path .
// don't modify