ArrJanitor::SonarrBackend
Inherits ArrJanitor::Backend < Reference < Object
Backend backed by the sonarr shard. Wraps a Sonarr::Client built from
a Config::Backend and maps Sonarr's models onto ArrJanitor's structs.
Network errors are not swallowed: any failed Sonarr request raises
(Sonarr::ApiError) for the scheduler/janitor to log.
Constants
Page size used when walking the (paged) queue endpoint.
Constructors
Class methods
Builds a DownloadClientInfo from a Sonarr download-client resource,
reading host/port/useSsl/urlBase out of its fields.
Maps a Sonarr queue record onto a QueueItem.
Whether episode has aired by now (both compared in UTC).
Instance methods
Deletes the queue record, removing it from the download client and adding it to the blocklist.
Resolves the Sonarr download client named name to connection details
pulled from its fields array.
True when the item's episode has aired (air-date on/before now) — Sonarr's notion of an episode being released/available.
Issues an EpisodeSearch command for the item's episode, falling back to a
SeriesSearch when there is no episode id.