schedularr

command module
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Schedularr Logo

Schedularr

Content Scheduling for Tunarr

CI Go Version License PRs Welcome

Cron-based content scheduling for Tunarr TV channels, driven by rule-based blocks and content filters.

Docs • Quickstart • Features


Schedularr generates and applies TV channel schedules for Tunarr. Scheduling rules ("blocks") define a time slot, a cron expression, a target channel, and a content filter; Schedularr resolves each block against Tunarr's library and pushes the result back to Tunarr. It runs as a one-shot CLI command or as a long-lived process (serve) exposing an HTTP API, a web UI, and a cron-driven schedule cycle.

Features

  • Tunarr integration — reads channels and library content from Tunarr, pushes schedules back
  • Content filtering — regex title matching, genre/rating filters, year ranges, duration constraints
  • Series blocks — sequential episode progression per show, with season/episode state persisted
  • Cron scheduling — standard cron expressions, plus a Simple-mode picker in the web UI
  • HTTP API + web UI — blocks CRUD, generate/apply, history, series state, channels, status
  • Dry run — generate without --apply previews a schedule without pushing it to Tunarr

Quickstart

docker run -d --name schedularr \
  -p 8484:8484 \
  -v "$(pwd)/config.yaml:/etc/schedularr/config.yaml:ro" \
  -v schedularr-data:/data \
  -e SCHEDULARR_API_TOKEN="$(openssl rand -hex 32)" \
  ghcr.io/christopherime/schedularr:latest

Open http://<host>:8484/ and paste the SCHEDULARR_API_TOKEN value into the token panel. Full setup, building from source, and the config reference are on the docs site.

Documentation

Overview

Package main is the entry point for the Schedularr CLI application.

Directories

Path Synopsis
cmd
Package cmd provides command-line interface commands for Schedularr.
Package cmd provides command-line interface commands for Schedularr.
schema
Package schema provides embedded CUE schemas for Schedularr configuration.
Package schema provides embedded CUE schemas for Schedularr configuration.
internal
api
Package api implements the Schedularr HTTP API defined by api/openapi.yaml.
Package api implements the Schedularr HTTP API defined by api/openapi.yaml.
api/gen
Package gen provides primitives to interact with the openapi HTTP API.
Package gen provides primitives to interact with the openapi HTTP API.
api/middleware
Package middleware provides the HTTP middleware shared by every route on the Schedularr API server: request-id propagation, structured request logging, panic recovery, and bearer-token authentication.
Package middleware provides the HTTP middleware shared by every route on the Schedularr API server: request-id propagation, structured request logging, panic recovery, and bearer-token authentication.
blockio
Package blockio provides CUE-validated YAML import/export for scheduling blocks, plus first-run bootstrap of a static scheduler file into the block store (see Bootstrap in bootstrap.go).
Package blockio provides CUE-validated YAML import/export for scheduling blocks, plus first-run bootstrap of a static scheduler file into the block store (see Bootstrap in bootstrap.go).
cache
Package cache provides an in-memory caching mechanism for application data.
Package cache provides an in-memory caching mechanism for application data.
config
Package config provides configuration loading for Schedularr.
Package config provides configuration loading for Schedularr.
cueconfig
Package cueconfig provides CUE schema-based configuration validation, generation, and loading.
Package cueconfig provides CUE schema-based configuration validation, generation, and loading.
external/tunarr
Package tunarr provides a client for interacting with the Tunarr API.
Package tunarr provides a client for interacting with the Tunarr API.
httpclient
Package httpclient provides a shared HTTP client with retry logic and metrics instrumentation.
Package httpclient provides a shared HTTP client with retry logic and metrics instrumentation.
metadata
Package metadata looks up show metadata at external providers and folds their differing genre labels into one canonical vocabulary, so that a block's filter.genres means the same thing no matter which source a Tunarr library was built from.
Package metadata looks up show metadata at external providers and folds their differing genre labels into one canonical vocabulary, so that a block's filter.genres means the same thing no matter which source a Tunarr library was built from.
metadata/tmdb
Package tmdb implements metadata.Provider against The Movie Database's v3 REST API.
Package tmdb implements metadata.Provider against The Movie Database's v3 REST API.
metadata/tvdb
Package tvdb implements metadata.Provider against TheTVDB's v4 REST API.
Package tvdb implements metadata.Provider against TheTVDB's v4 REST API.
metrics
Package metrics provides Prometheus metrics instrumentation for Schedularr.
Package metrics provides Prometheus metrics instrumentation for Schedularr.
problem
Package problem defines the RFC 7807 problem+json error body shared by the Schedularr API's handlers (internal/api) and its HTTP middleware (internal/api/middleware).
Package problem defines the RFC 7807 problem+json error body shared by the Schedularr API's handlers (internal/api) and its HTTP middleware (internal/api/middleware).
scheduler
Package scheduler provides the core scheduling engine for Schedularr.
Package scheduler provides the core scheduling engine for Schedularr.
service
Package service hosts the schedule-generation workflow shared by the CLI (cmd/generate.go) and the HTTP API (internal/api/schedule.go): loading the active scheduling blocks, fetching available Tunarr content, running the scheduling engine over a time window, and -- when asked -- pushing the result to Tunarr and committing engine state.
Package service hosts the schedule-generation workflow shared by the CLI (cmd/generate.go) and the HTTP API (internal/api/schedule.go): loading the active scheduling blocks, fetching available Tunarr content, running the scheduling engine over a time window, and -- when asked -- pushing the result to Tunarr and committing engine state.
store
Package store provides persistence for scheduling state.
Package store provides persistence for scheduling state.
Package web embeds the Hugo-built site (web/public) into the schedularr binary.
Package web embeds the Hugo-built site (web/public) into the schedularr binary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL