Versions in this module Expand all Collapse all v0 v0.13.0 Nov 21, 2026 Changes in this version + const ImplAudioChannels + const ImplAudioCodec + const ImplEdition + const ImplIndexerFlag + const ImplLanguage + const ImplQualityModifier + const ImplReleaseGroup + const ImplReleaseTitle + const ImplResolution + const ImplSize + const ImplSource + const ImplYear + func MatchRelease(formats []CustomFormat, release ReleaseInfo) []string + func ScoreRelease(matched []string, profileScores map[string]int) int + type CreateRequest struct + IncludeWhenRenaming bool + Name string + Specifications []Specification + type CustomFormat struct + CreatedAt time.Time + ID string + IncludeWhenRenaming bool + Name string + Specifications []Specification + UpdatedAt time.Time + type ReleaseInfo struct + AudioChannels string + AudioCodec string + Edition string + IndexerFlags []string + Languages []string + Modifier string + ReleaseGroup string + Resolution string + SizeBytes int64 + Source string + Title string + Year int + type Service struct + func NewService(q dbgen.Querier) *Service + func (s *Service) Create(ctx context.Context, req CreateRequest) (CustomFormat, error) + func (s *Service) Delete(ctx context.Context, id string) error + func (s *Service) Export(ctx context.Context, ids []string) ([]byte, error) + func (s *Service) Get(ctx context.Context, id string) (CustomFormat, error) + func (s *Service) Import(ctx context.Context, data []byte) ([]CustomFormat, error) + func (s *Service) ImportPreset(ctx context.Context, presetID string) (CustomFormat, error) + func (s *Service) List(ctx context.Context) ([]CustomFormat, error) + func (s *Service) ListPresets() []presets.Preset + func (s *Service) ListScores(ctx context.Context, profileID string) (map[string]int, error) + func (s *Service) SetScores(ctx context.Context, profileID string, scores map[string]int) error + func (s *Service) Update(ctx context.Context, id string, req UpdateRequest) (CustomFormat, error) + type Specification struct + Fields map[string]string + Implementation string + Name string + Negate bool + Required bool + type UpdateRequest struct + IncludeWhenRenaming bool + Name string + Specifications []Specification