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.