Versions in this module Expand all Collapse all v0 v0.13.0 Nov 21, 2026 Changes in this version + var ErrItemNotFound = errors.New("download client: item not found") + type AudioChannels string + const AudioChannels10 + const AudioChannels20 + const AudioChannels51 + const AudioChannels71 + const AudioChannelsUnknown + type AudioCodec string + const AudioCodecAAC + const AudioCodecAC3 + const AudioCodecDTS + const AudioCodecDTSHD + const AudioCodecDTSHDMA + const AudioCodecDTSX + const AudioCodecEAC3 + const AudioCodecEAC3Atmos + const AudioCodecFLAC + const AudioCodecMP3 + const AudioCodecOpus + const AudioCodecPCM + const AudioCodecTrueHD + const AudioCodecTrueHDAtmos + const AudioCodecUnknown + type Capabilities struct + Categories []int + MovieSearch bool + SearchAvailable bool + TVSearchAvailable bool + type Codec string + const CodecAV1 + const CodecUnknown + const CodecX264 + const CodecX265 + const CodecXVID + type DownloadClient interface + Add func(ctx context.Context, r Release) (clientItemID string, err error) + GetQueue func(ctx context.Context) ([]QueueItem, error) + Name func() string + Protocol func() Protocol + Remove func(ctx context.Context, clientItemID string, deleteFiles bool) error + Status func(ctx context.Context, clientItemID string) (QueueItem, error) + Test func(ctx context.Context) error + type DownloadStatus string + const StatusCompleted + const StatusDownloading + const StatusFailed + const StatusPaused + const StatusQueued + type EventType string + const EventDownloadDone + const EventGrabStarted + const EventHealthIssue + const EventHealthOK + const EventImportDone + const EventImportFailed + const EventMovieAdded + const EventMovieDeleted + type HDRFormat string + const HDRDolbyVision + const HDRHDR10 + const HDRHDR10Plus + const HDRHLG + const HDRNone + const HDRUnknown + type ImportList interface + Fetch func(ctx context.Context) ([]ImportListItem, error) + Name func() string + Test func(ctx context.Context) error + type ImportListItem struct + IMDbID string + PosterPath string + TMDbID int + Title string + Year int + type Indexer interface + Capabilities func(ctx context.Context) (Capabilities, error) + GetRecent func(ctx context.Context) ([]Release, error) + Name func() string + Protocol func() Protocol + Search func(ctx context.Context, q SearchQuery) ([]Release, error) + Test func(ctx context.Context) error + type IndexerFlag string + const FlagDoubleUpload + const FlagFreeleech + const FlagFreeleech25 + const FlagFreeleech75 + const FlagHalfleech + const FlagInternal + const FlagNuked + const FlagScene + type MediaServer interface + Name func() string + RefreshLibrary func(ctx context.Context, moviePath string) error + Test func(ctx context.Context) error + type NotificationEvent struct + Data map[string]any + Message string + MovieID string + Timestamp time.Time + Type EventType + type Notifier interface + Name func() string + Notify func(ctx context.Context, event NotificationEvent) error + Test func(ctx context.Context) error + type Protocol string + const ProtocolNZB + const ProtocolTorrent + const ProtocolUnknown + type Quality struct + AudioChannels AudioChannels + AudioCodec AudioCodec + Codec Codec + HDR HDRFormat + Name string + Resolution Resolution + Source Source + func (q Quality) AtLeast(other Quality) bool + func (q Quality) BetterThan(other Quality) bool + func (q Quality) Score() int + type QueueItem struct + AddedAt int64 + ClientItemID string + ContentPath string + Downloaded int64 + Error string + SeedRatio float64 + Size int64 + Status DownloadStatus + Title string + type Release struct + AgeDays float64 + DownloadURL string + Edition string + GUID string + Indexer string + IndexerFlags []IndexerFlag + InfoHash string + InfoURL string + MediaTitle string + MediaYear int + MovieID string + Peers int + Protocol Protocol + Quality Quality + ReleaseGroup string + Seeds int + Size int64 + TMDBID int + Title string + type Resolution string + const Resolution1080p + const Resolution2160p + const Resolution480p + const Resolution576p + const Resolution720p + const ResolutionSD + const ResolutionUnknown + type ScoreBreakdown struct + CustomFormatScore int + Dimensions []ScoreDimension + EditionBonus int + MatchedFormats []string + Total int + type ScoreDimension struct + Got string + Matched bool + Max int + Name string + Score int + Want string + type SearchQuery struct + IMDBID string + Query string + TMDBID int + Year int + type SeedLimiter interface + SetSeedLimits func(ctx context.Context, clientItemID string, ratioLimit float64, seedTimeSecs int) error + type Source string + const SourceBRDisk + const SourceBluRay + const SourceCAM + const SourceDVD + const SourceDVDR + const SourceDVDSCR + const SourceHDTV + const SourceRawHD + const SourceRegional + const SourceRemux + const SourceTELECINE + const SourceTelesync + const SourceUnknown + const SourceWEBDL + const SourceWEBRip + const SourceWorkprint + type TMDBInjectable interface + SetTMDBClient func(client any) + type TraktInjectable interface + SetTraktClient func(client any) + type WatchEvent struct + TMDBID int + Title string + UserName string + WatchedAt time.Time + type WatchProvider interface + WatchHistory func(ctx context.Context, since time.Time) ([]WatchEvent, error)