Versions in this module Expand all Collapse all v0 v0.1.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") + 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 db.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) Allows(q plugin.Quality) bool + func (p *Profile) IsUpgrade(releaseQuality plugin.Quality, currentQuality plugin.Quality) bool + func (p *Profile) ScoreWithBreakdown(q plugin.Quality) (int, plugin.ScoreBreakdown) + type Service struct + func NewService(q db.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