scenenumbering

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package scenenumbering lazily reads untrusted XEM episode mappings. Only a TVDB absolute-number match establishes a TMDB episode's identity.

Index

Constants

View Source
const DefaultURL = "https://thexem.info/map/all"

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	URL    string
	Client *http.Client
	Now    func() time.Time
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(opts Options) *Service

func (*Service) Lookup

func (s *Service) Lookup(ctx context.Context, req core.SearchRequest, canonical func() (core.EpisodeLayout, error)) (core.ReleaseNumbering, error)

Lookup reads XEM only on demand; canonical facts are read only after an entry exists. Canonical numbering remains authoritative.

func (*Service) LookupCached

func (s *Service) LookupCached(req core.SearchRequest, canonical func() (core.EpisodeLayout, error)) (core.ReleaseNumbering, error)

LookupCached never performs network work.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL