Documentation
¶
Overview ¶
Package blocklist remembers releases that failed for a reason that is the release's fault, so automation does not grab the same dud again.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct {
ID int64
ReleaseTitle string
Protocol string
Reason string
MovieID int64 // 0 if not tied to a movie
SeriesID int64 // 0 if not tied to a series
CreatedAt time.Time
}
Entry is one blocklisted release.
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) Add ¶
Add blocklists a release; adding one that is already blocklisted just refreshes its reason and timestamp.
func (*Repo) CountRecent ¶
CountRecent counts entries for a movie (movieID) or series (seriesID) added since the given time — the guard that stops automatic retries from chewing through an endless list of bad releases.