Documentation
¶
Overview ¶
Package seriesbulk edits or deletes many series at once (Sonarr's mass editor). Every change is validated as a whole first and then applied in one transaction, so a request either changes every series or none.
Index ¶
Constants ¶
const MaxSeries = 1000
MaxSeries caps one request.
Variables ¶
SeriesTypes are the valid series types.
Functions ¶
This section is empty.
Types ¶
type Edit ¶
type Edit struct {
IDs []string
Monitored *bool
QualityProfileID *string
LibraryID *string
SeriesType *string
}
Edit changes the given fields of every series in IDs. A nil field is left as it is.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service applies bulk changes.
func (*Service) Delete ¶
Delete removes every series in ids. With deleteFiles, their recorded episode files are removed from disk too, through the recycle bin when one is set. The database change is one transaction; files are removed after it commits, and a file that can't be removed is logged, not returned (the series is already gone).
type ValidationError ¶
type ValidationError struct{ Msg string }
ValidationError explains why a request was rejected. Nothing changed.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string