wanted

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package wanted answers "which episodes still need something": episodes whose file is below their quality profile's cutoff, and the best quality an episode currently has on disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BestFileQuality

func BestFileQuality(files []db.EpisodeFile, episodeID string) *plugin.Quality

BestFileQuality returns the best recorded quality among the files that belong to episodeID, or nil when the episode has none. A file whose quality was never recorded yields an empty Quality (Score 0).

Types

type CutoffEpisode

type CutoffEpisode struct {
	Episode     db.Episode
	SeriesTitle string
	Current     plugin.Quality
	Cutoff      plugin.Quality
}

CutoffEpisode is a monitored episode whose file is below the cutoff.

func CutoffUnmet

func CutoffUnmet(ctx context.Context, q db.Querier, profiles ProfileGetter) ([]CutoffEpisode, error)

CutoffUnmet lists monitored episodes, in monitored series, whose best file quality is below the series' quality profile cutoff. Sorted by series title, season, episode.

Files of unknown quality (recorded before quality was tracked) are left out: automatic upgrades skip them (decision.ReasonCurrentUnknown), so listing them here would offer a search that does nothing.

type ProfileGetter

type ProfileGetter interface {
	Get(ctx context.Context, id string) (quality.Profile, error)
}

ProfileGetter loads a quality profile by ID. quality.Service satisfies it.

Jump to

Keyboard shortcuts

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