sharefilter

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Overview

Package sharefilter parses plex.tv shared-server filter specs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clause

type Clause struct {
	Field  string
	Negate bool
	LTE    bool
	GTE    bool
	Values []string
}

Clause is one contentRating or label predicate from a plex.tv filter.

func Parse

func Parse(spec string) []Clause

Parse splits a plex.tv filter spec. Multi-value lists are joined with %2C, so values are unescaped before they are split on commas.

type Part

type Part struct {
	Kind   string   `json:"kind"`
	Values []string `json:"values"`
}

Part is one owner-readable clause of a plex.tv share filter.

func Format

func Format(spec string) []Part

Format turns a plex.tv filter spec into owner-readable parts.

Jump to

Keyboard shortcuts

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