autotag

package
Version: v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func GalleryPerformers

func GalleryPerformers(s *models.Gallery, rw models.GalleryReaderWriter, performerReader models.PerformerReader) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) error

SceneTags tags the provided scene with tags whose name matches the scene's path.

func StudioGalleries

func StudioGalleries(p *models.Studio, paths []string, rw models.GalleryReaderWriter) 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, rw models.ImageReaderWriter) 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, rw models.SceneReaderWriter) 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) error

TagGalleries searches for galleries whose path matches the provided tag name and tags the gallery with the tag.

func TagImages

func TagImages(p *models.Tag, paths []string, aliases []string, rw models.ImageReaderWriter) error

TagImages searches for images whose path matches the provided tag name and tags the image with the tag.

func TagScenes

func TagScenes(p *models.Tag, paths []string, aliases []string, rw models.SceneReaderWriter) error

TagScenes searches for scenes whose path matches the provided tag name and tags the scene with the tag.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL