Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Raidtech Calendar

Raidtech Calendar is a self-hosted calendar of movie releases and TV episodes for the media requested in Seerr (or Jellyseerr) and the series already in your Jellyfin library.

It reads requests from Seerr, optionally reads the Jellyfin library, fetches metadata from TMDB (directly or through Seerr) and stores events and caches in SQLite.

Features

  • Month and agenda views, with movie / series filters. The agenda view is the default on phones.
  • Recent past included (45 days by default), so you can see what came out this week.
  • "Available in Jellyfin" badge on episodes and movies already in the library, with direct links to Jellyfin, Seerr and TMDB.
  • Missing releases: episodes and digital movie releases that came out more than MISSING_AFTER_DAYS days ago but are still not in Jellyfin are flagged in red, with a "Manquants" filter and a Discord alert (once per item, only for new ones).
  • iCalendar feed at /calendar.ics (also ?type=movie / ?type=tv) to subscribe from a phone, Google Calendar, Outlook or Thunderbird.
  • Movie dates that matter for a media server: theatrical and digital (VOD / streaming) release dates for your region.
  • Optional daily Discord digest of today's releases.
  • Discord banner on the page, with a button to link a Discord account and another to join the server.
  • Feed for the Raidtech Discord bot, which announces releases in a channel and pings the people who follow them (see Discord integration).
  • French metadata, with the English episode title used when TMDB only has a generic French one ("Épisode 12").
  • Efficient sync: only the current and recent seasons are fetched, ended series and old library movies are skipped, and media with nothing upcoming are re-checked less often.
  • Survives upstream outages: cached metadata is reused, and a Jellyfin outage never wipes library series from the calendar.
  • /health returns HTTP 503 when sync is stale, so it can be monitored (e.g. Uptime Kuma).

Requirements

  • Docker Engine and Docker Compose v2
  • A reachable Seerr or Jellyseerr instance and its API key
  • Recommended: a TMDB API key (v3 key or v4 read access token)
  • Optional: a reachable Jellyfin instance and an API key

Quick start (Docker Compose)

  1. Clone this repository and create your environment file:

    cp .env.example .env
  2. Edit .env and set at least SEERR_URL and SEERR_API_KEY. Setting TMDB_API_KEY, JELLYFIN_URL and JELLYFIN_API_KEY is recommended.

  3. Start the application, either with the prebuilt image or by building locally:

    docker compose pull && docker compose up -d     # prebuilt image from GHCR
    docker compose up -d --build                    # or build from source
  4. Open http://YOUR_SERVER:30050.

Logs: docker compose logs -f raidtech-calendar

Your .env file and the data/ directory are local and must not be committed.

Configuration

Variable Required Default Description
SEERR_URL Yes Base URL of Seerr/Jellyseerr, as reached from the container
SEERR_API_KEY Yes Seerr/Jellyseerr API key
SEERR_PUBLIC_URL No SEERR_URL Seerr URL used for links opened in the browser
TMDB_API_KEY No TMDB v3 key or v4 token. Without it, metadata goes through Seerr
JELLYFIN_URL No Base URL of Jellyfin, as reached from the container
JELLYFIN_API_KEY No Jellyfin API key
JELLYFIN_PUBLIC_URL No JELLYFIN_URL Jellyfin URL used for links opened in the browser
DISCORD_WEBHOOK_URL No Enables the daily digest and the missing-release alerts
MISSING_AFTER_DAYS No 2 Days after release before an item absent from Jellyfin is flagged
DISCORD_INVITE_URL No Shows a "Rejoindre le Discord" button
DISCORD_LINK_URL No JELLYFIN_PUBLIC_URL/web/#/mypreferencesmenu Where people link Discord to Jellyfin (Raidtech RPC panel, which chains into JellyfinSecurity)
BOT_API_TOKEN No Enables /api/announcements for the Raidtech Discord bot (send as Authorization: Bearer …)
CALENDAR_PUBLIC_URL No request host Public calendar URL given to the bot
WATCHING_DAYS No 60 A user who played an episode within this many days "watches" the series
DIGEST_HOUR No 9 Hour (local time) the digest is sent, within a 3-hour window
TZ No Europe/Paris Time zone used to decide what "today" is
PAST_DAYS No 45 How many past days stay visible
RELEASE_REGION No FR Country used for movie release dates
LANGUAGE No fr-FR Metadata language
PORT No 30050 Host port exposed by Docker
SYNC_SECONDS No 3600 Delay between sync cycles, minimum 300
MEDIA_CACHE_HOURS No 6 Refresh interval for media with upcoming events
IDLE_RECHECK_HOURS No 72 Refresh interval for media with nothing upcoming
SEASON_CACHE_HOURS No 24 Cache lifetime of season episode lists
LIBRARY_MOVIE_MAX_AGE_DAYS No 400 Library movies older than this are not looked up
DB_PATH No /app/data/raidtech-calendar.sqlite3 SQLite path inside the container
LOG_LEVEL No INFO Python logging level

Endpoints

Path Description
/ Web interface
/api/events Events, last sync time, sync errors and public links (JSON)
/calendar.ics iCalendar feed (?type=movie or ?type=tv to filter)
/health Status JSON. HTTP 503 when not configured or when the last sync is too old
/api/announcements Private (bearer token). Releases of the last 7 days and tomorrow, with links and the people concerned: Seerr requesters and watchlists, Jellyfin favorites and recent viewers

Discord integration

Two independent features:

  • Webhook (DISCORD_WEBHOOK_URL): the daily digest and the missing-release alerts, sent by the calendar itself.

  • Bot announcements (BOT_API_TOKEN): the calendar only serves /api/announcements; the Raidtech Discord bot polls it, posts one message per release and edits it as the release moves from pending to available in Jellyfin (or missing). When it becomes available, the bot pings the people concerned:

    Reason Source
    Requested it Seerr requests
    In their watchlist Seerr watchlist
    In their favorites Jellyfin favorites
    Watching the series An episode played within WATCHING_DAYS

    Jellyfin and Seerr users are matched to Discord accounts by the bot, through the same link used by JellyfinSecurity and Raidtech RPC (Discord → Authentik → Jellyfin). One link gives Discord sign-in on Jellyfin, mentions and Rich Presence.

Setup: generate a random token (e.g. openssl rand -base64 32), set it as BOT_API_TOKEN here and as CALENDAR_API_TOKEN in the bot. /api/announcements answers 404 while no token is set and 401 for a wrong token.

Note

The provided compose.yaml lists every variable under environment:. If you write your own compose file (e.g. in Dockge) without env_file, a variable that is only in .env never reaches the container: add it under environment: too, e.g. BOT_API_TOKEN: ${BOT_API_TOKEN:-}.

Persistent data and backups

Docker Compose mounts ./data to /app/data. The SQLite database lives there. It only holds caches: deleting it is safe, the next sync rebuilds it. When the schema changes, the app rebuilds it automatically.

Reverse proxy and Jellyfin

The interface can be published through any reverse proxy, and embedded in Jellyfin with a custom-tabs plugin. The application has no authentication: do not expose it publicly without access control in front of it. Calendar apps fetching /calendar.ics need to reach that URL too.

Troubleshooting

  • No events appear: check SEERR_URL and SEERR_API_KEY, then the container logs.
  • "Synchro partielle" in the header: hover it to see which media failed; details are in the logs.
  • Jellyfin series or badges missing: verify the Jellyfin URL, the API key, and that the media have TMDB provider IDs.
  • Wrong day highlighted: set TZ to your time zone.
  • Discord button missing, or the bot gets 404: DISCORD_INVITE_URL / BOT_API_TOKEN do not reach the container. Check the compose environment: section (see the note above) and redeploy.
  • Page looks broken behind Cloudflare: asset URLs are versioned (?v=) and / is sent with Cache-Control: no-cache; purge the cache once if an old copy of / is still served.

Development

python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
pytest

Run locally with python app.py (Flask development server on port 30050). The container runs gunicorn with a single worker, because the sync and digest threads live in that process.

Every push to main runs the tests and publishes ghcr.io/raidoudou/raidtech-calendar:latest.

License

This project is licensed under the MIT License. See LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages