Documentation ¶
Overview ¶
Package autotag provides methods to auto-tag scenes with performers, studios and tags.
The autotag engine tags scenes with performers/studios/tags if the scene's path matches the performer/studio/tag name. A scene's path is considered a match if it contains the performer/studio/tag's full name, ignoring any '.', '-', '_' characters in the path.
For example, for a performer "foo bar", the following paths would be considered a match: "foo bar.mp4", "foobar.mp4", "foo.bar.mp4", "foo-bar.mp4", "aaa.foo bar.bbb.mp4". The following would not be considered a match: "aafoo bar.mp4", "foo barbb.mp4", "foo/bar.mp4"
Index ¶
- func GalleryPerformers(s *models.Gallery, rw models.GalleryReaderWriter, ...) error
- func GalleryStudios(s *models.Gallery, rw models.GalleryReaderWriter, ...) error
- func GalleryTags(s *models.Gallery, rw models.GalleryReaderWriter, tagReader models.TagReader, ...) error
- func ImagePerformers(s *models.Image, rw models.ImageReaderWriter, ...) error
- func ImageStudios(s *models.Image, rw models.ImageReaderWriter, studioReader models.StudioReader, ...) error
- func ImageTags(s *models.Image, rw models.ImageReaderWriter, tagReader models.TagReader, ...) error
- func PerformerGalleries(p *models.Performer, paths []string, rw models.GalleryReaderWriter, ...) error
- func PerformerImages(p *models.Performer, paths []string, rw models.ImageReaderWriter, ...) error
- func PerformerScenes(p *models.Performer, paths []string, rw models.SceneReaderWriter, ...) error
- func ScenePerformers(s *models.Scene, rw models.SceneReaderWriter, ...) error
- func SceneStudios(s *models.Scene, rw models.SceneReaderWriter, studioReader models.StudioReader, ...) error
- func SceneTags(s *models.Scene, rw models.SceneReaderWriter, tagReader models.TagReader, ...) error
- func StudioGalleries(p *models.Studio, paths []string, aliases []string, ...) error
- func StudioImages(p *models.Studio, paths []string, aliases []string, ...) error
- func StudioScenes(p *models.Studio, paths []string, aliases []string, ...) error
- func TagGalleries(p *models.Tag, paths []string, aliases []string, rw models.GalleryReaderWriter, ...) error
- func TagImages(p *models.Tag, paths []string, aliases []string, rw models.ImageReaderWriter, ...) error
- func TagScenes(p *models.Tag, paths []string, aliases []string, rw models.SceneReaderWriter, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GalleryPerformers ¶
func GalleryPerformers(s *models.Gallery, rw models.GalleryReaderWriter, performerReader models.PerformerReader, cache *match.Cache) error
GalleryPerformers tags the provided gallery with performers whose name matches the gallery's path.
func GalleryStudios ¶
func GalleryStudios(s *models.Gallery, rw models.GalleryReaderWriter, studioReader models.StudioReader, cache *match.Cache) error
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 GalleryTags ¶
func GalleryTags(s *models.Gallery, rw models.GalleryReaderWriter, tagReader models.TagReader, cache *match.Cache) error
GalleryTags tags the provided gallery with tags whose name matches the gallery's path.
func ImagePerformers ¶
func ImagePerformers(s *models.Image, rw models.ImageReaderWriter, performerReader models.PerformerReader, cache *match.Cache) error
ImagePerformers tags the provided image with performers whose name matches the image's path.
func ImageStudios ¶
func ImageStudios(s *models.Image, rw models.ImageReaderWriter, studioReader models.StudioReader, cache *match.Cache) error
ImageStudios tags the provided image with the first studio whose name matches the image's path.
Images will not be tagged if studio is already set.
func ImageTags ¶
func ImageTags(s *models.Image, rw models.ImageReaderWriter, tagReader models.TagReader, cache *match.Cache) error
ImageTags tags the provided image with tags whose name matches the image's path.
func PerformerGalleries ¶
func PerformerGalleries(p *models.Performer, paths []string, rw models.GalleryReaderWriter, cache *match.Cache) error
PerformerGalleries searches for galleries whose path matches the provided performer name and tags the gallery with the performer.
func PerformerImages ¶
func PerformerImages(p *models.Performer, paths []string, rw models.ImageReaderWriter, cache *match.Cache) error
PerformerImages searches for images whose path matches the provided performer name and tags the image with the performer.
func PerformerScenes ¶
func PerformerScenes(p *models.Performer, paths []string, rw models.SceneReaderWriter, cache *match.Cache) error
PerformerScenes searches for scenes whose path matches the provided performer name and tags the scene with the performer.
func ScenePerformers ¶
func ScenePerformers(s *models.Scene, rw models.SceneReaderWriter, performerReader models.PerformerReader, cache *match.Cache) error
ScenePerformers tags the provided scene with performers whose name matches the scene's path.
func SceneStudios ¶
func SceneStudios(s *models.Scene, rw models.SceneReaderWriter, studioReader models.StudioReader, cache *match.Cache) error
SceneStudios tags the provided scene with the first studio whose name matches the scene's path.
Scenes will not be tagged if studio is already set.
func SceneTags ¶
func SceneTags(s *models.Scene, rw models.SceneReaderWriter, tagReader models.TagReader, cache *match.Cache) error
SceneTags tags the provided scene with tags whose name matches the scene's path.
func StudioGalleries ¶
func StudioGalleries(p *models.Studio, paths []string, aliases []string, rw models.GalleryReaderWriter, cache *match.Cache) error
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 StudioImages ¶
func StudioImages(p *models.Studio, paths []string, aliases []string, rw models.ImageReaderWriter, cache *match.Cache) error
StudioImages searches for images whose path matches the provided studio name and tags the image with the studio, if studio is not already set on the image.
func StudioScenes ¶
func StudioScenes(p *models.Studio, paths []string, aliases []string, rw models.SceneReaderWriter, cache *match.Cache) error
StudioScenes searches for scenes whose path matches the provided studio name and tags the scene with the studio, if studio is not already set on the scene.
func TagGalleries ¶
func TagGalleries(p *models.Tag, paths []string, aliases []string, rw models.GalleryReaderWriter, cache *match.Cache) error
TagGalleries searches for galleries whose path matches the provided tag name and tags the gallery with the tag.
Types ¶
This section is empty.