Documentation
¶
Overview ¶
Package releasepolicy evaluates the same bounded, declarative rules for playback, release search and unsaved previews. No client or UI dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Better ¶
Better gives explicit fallback tiers precedence, then ordered preferences. Equal policy results leave TRaSH, health and source routing order untouched.
func Conflict ¶
func Conflict(rules []core.ReleaseRule) string
Conflict describes required rules that cannot be true of one release. Empty means no such conflict. Disabled rules, exceptions and fallbacks are left alone: those can still be satisfied.
func Equivalent ¶
Equivalent reports the same fallback tier and the same ordered preference vector. Health racing may overtake only an equivalent candidate; a fallback must not pass a still-valid primary.
func UsesOriginalAudio ¶
func UsesOriginalAudio(rules []core.ReleaseRule) bool
UsesOriginalAudio reports whether evaluation of these rules needs the catalogue original language. Disabled rules do not.
Types ¶
type Context ¶
type Context struct {
OriginalLanguage string
}
Context is evidence that belongs to the title, not the release. OriginalLanguage is the catalogue title's original language (Title.Language) when the caller has that title. An empty value means the comparison is unavailable. It is never a guessed language, and it is not part of the profile selection hash or the search cache key.