Documentation ¶
Index ¶
Constants ¶
View Source
const ( TVDBSchema = "https://github.com/varoOP/shinkro-mapping/raw/main/.github/schema-tvdb.json" TMDBSchema = "https://github.com/varoOP/shinkro-mapping/raw/main/.github/schema-tmdb.json" )
Variables ¶
This section is empty.
Functions ¶
func ChecklocalMaps ¶ added in v0.1.1
func NewAnimeMaps ¶ added in v0.1.1
func NewAnimeMaps(cfg *Config) (*AnimeTVDBMap, *AnimeMovies, error)
Types ¶
type Anime ¶
type Anime struct { Malid int `yaml:"malid" json:"malid"` Title string `yaml:"title" json:"title"` Type string `yaml:"type" json:"type"` Tvdbid int `yaml:"tvdbid" json:"tvdbid"` TvdbSeason int `yaml:"tvdbseason" json:"tvdbseason"` Start int `yaml:"start" json:"start"` UseMapping bool `yaml:"useMapping" json:"useMapping"` AnimeMapping []AnimeMapping `yaml:"animeMapping" json:"animeMapping"` }
type AnimeMapping ¶ added in v0.1.1
type AnimeMovie ¶ added in v0.1.1
type AnimeMovies ¶ added in v0.1.1
type AnimeMovies struct {
AnimeMovie []AnimeMovie `yaml:"animeMovies" json:"animeMovies"`
}
func (*AnimeMovies) CheckMap ¶ added in v0.1.1
func (am *AnimeMovies) CheckMap(tmdbid int) (bool, *AnimeMovie)
type AnimeTVDBMap ¶ added in v0.1.1
type AnimeTVDBMap struct {
Anime []Anime `yaml:"AnimeMap" json:"AnimeMap"`
}
type AnimeUpdate ¶
type AnimeUpdate struct { Client *mal.Client DB *database.DB Config *Config Plex *plex.PlexWebhook Anime *Anime AnimeMovie *AnimeMovie TVDBMapping *AnimeTVDBMap TMDBMapping *AnimeMovies InTVDBMap bool InTMDBMap bool Media *database.Media Malid int Start int Ep int MyList *MyList Malresp *mal.AnimeListStatus Log zerolog.Logger Notify *Notification }
func NewAnimeUpdate ¶
func NewAnimeUpdate(db *database.DB, cfg *Config, log *zerolog.Logger, n *Notification) AnimeUpdate
func (*AnimeUpdate) SendUpdate ¶
func (a *AnimeUpdate) SendUpdate(ctx context.Context) error
type Config ¶
type Config struct { ConfigPath string Username string `koanf:"Username"` Password string `koanf:"Password"` Host string `koanf:"Host"` Port int `koanf:"Port"` PlexUser string `koanf:"PlexUsername"` PlexUrl string `koanf:"Url"` PlexToken string `koanf:"Token"` AnimeLibraries []string `koanf:"AnimeLibraries"` ApiKey string `koanf:"ApiKey"` BaseUrl string `koanf:"BaseUrl"` CustomMapTVDB bool CustomMapTVDBPath string CustomMapTMDB bool CustomMapTMDBPath string TVDBMalMap *AnimeTVDBMap TMDBMalMap *AnimeMovies DiscordWebHookURL string `koanf:"DiscordWebhookUrl"` LogLevel string `koanf:"LogLevel"` LogMaxSize int `koanf:"LogMaxSize"` LogMaxBackups int `koanf:"LogMaxBackups"` }
func (*Config) LocalMapsExist ¶ added in v0.1.1
func (cfg *Config) LocalMapsExist()
type Notification ¶
type Notification struct { Error chan error Anime chan AnimeUpdate PayLoad *NotificationPayload Url string }
Click to show internal directories.
Click to hide internal directories.