Help us shape the future of Go! Take the 2026 Go Developer Survey

libraryfilter

package
v0.2.48 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package libraryfilter evaluates owner catalogue exclusions without network access. The same compiled conditions drive local previews and Plex policy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountryAliases

func CountryAliases(v string) []string

TMDB movie production countries use names; TV origins use ISO codes. Match both forms, never infer a country from the spoken language.

Types

type Filter

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

func Compile

func Compile(specs []core.LibraryExclusion) (*Filter, error)

func (*Filter) Hidden

func (f *Filter) Hidden(t *core.Title) bool

func (*Filter) SQLHidden

func (f *Filter) SQLHidden() (string, []any)

SQLHidden returns a parameterized predicate for catalog_titles AS t. Its fixed column/table whitelist has the same unknown-value semantics as Hidden.

Jump to

Keyboard shortcuts

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