Versions in this module Expand all Collapse all v0 v0.14.1 Nov 24, 2026 v0.14.0 Nov 24, 2026 Changes in this version + func IsTheaterRecording(s plugin.Source) bool v0.13.0 Nov 21, 2026 Changes in this version + var ErrInUse = errors.New("quality profile is in use") + var ErrNotFound = errors.New("quality profile not found") + func BuildName(res plugin.Resolution, src plugin.Source, codec plugin.Codec, ...) string + func Parse(title string) (plugin.Quality, error) + func ParseReleaseGroup(title string) string + type CreateRequest struct + Cutoff plugin.Quality + MinCustomFormatScore int + Name string + Qualities []plugin.Quality + UpgradeAllowed bool + UpgradeUntil *plugin.Quality + UpgradeUntilCFScore int + type Definition struct + Codec string + HDR string + ID string + MaxSize float64 + MinSize float64 + Name string + PreferredSize float64 + Resolution string + SortOrder int + Source string + type DefinitionService struct + func NewDefinitionService(q dbgen.Querier) *DefinitionService + func (s *DefinitionService) BulkUpdate(ctx context.Context, updates []DefinitionSizeUpdate) error + func (s *DefinitionService) List(ctx context.Context) ([]Definition, error) + type DefinitionSizeUpdate struct + ID string + MaxSize float64 + MinSize float64 + PreferredSize float64 + type Profile struct + Cutoff plugin.Quality + ID string + ManagedByPulse bool + MinCustomFormatScore int + Name string + Qualities []plugin.Quality + UpgradeAllowed bool + UpgradeUntil *plugin.Quality + UpgradeUntilCFScore int + func (p *Profile) AllowedQualities() []plugin.Quality + func (p *Profile) IsUpgrade(releaseQuality plugin.Quality, currentQuality plugin.Quality) bool + func (p *Profile) RejectReason(releaseQuality plugin.Quality, currentFileQuality *plugin.Quality) string + func (p *Profile) ScoreWithBreakdown(q plugin.Quality) (int, plugin.ScoreBreakdown) + func (p *Profile) WantRelease(releaseQuality plugin.Quality, currentFileQuality *plugin.Quality) bool + type Service struct + func NewService(q dbgen.Querier, bus *events.Bus) *Service + func (s *Service) Create(ctx context.Context, req CreateRequest) (Profile, error) + func (s *Service) CreateManaged(ctx context.Context, id string, req CreateRequest) (Profile, error) + func (s *Service) Delete(ctx context.Context, id string) error + func (s *Service) DetachFromPulse(ctx context.Context, id string) error + func (s *Service) Get(ctx context.Context, id string) (Profile, error) + func (s *Service) List(ctx context.Context) ([]Profile, error) + func (s *Service) ListManaged(ctx context.Context) ([]Profile, error) + func (s *Service) Update(ctx context.Context, id string, req UpdateRequest) (Profile, error) + type UpdateRequest = CreateRequest