Website: codeberg.org/nwithan8/plex-prerolls
Plex Prerolls is a small Python service that keeps Plex’s pre-roll setting in step with a schedule you write in YAML. Instead of editing the list of intro videos by hand, you describe which files should play on which dates, and the service rewrites Plex’s cinemaTrailersPrerollID setting on each run. It is configured through config.yaml; there is no browser interface, and logs and rendered files stay on disk.
It is free and open source under GPL-3.0. The useful part is the scheduling model. Entries can be permanent, tied to a date range (with wildcards), tied to a week or month, weighted so seasonal clips appear more often, or calculated from floating holidays such as Thanksgiving. Path globbing lets you point at a local preroll directory and have the container translate the matches into the paths Plex sees. The optional webhook feature goes further: when Plex reports a newly added item, it can fetch a trailer and poster, render a short “recently added” clip with ffmpeg, and add it to the rotation. That needs Plex Pass, yt-dlp cookies and the container running beside Plex. The project does not automate Jellyfin or Emby; the README points to those servers’ own intro plugins instead.
count to pick a random subset on each run.weight so its clips are repeated in Plex’s random pool, and use disable_always to suppress the permanent list while a holiday schedule is active.*.mp4 or subdir/**/*.mkv, and translate them to the corresponding Plex path. This requires the container to run on the same machine as Plex./recently-added, pull a trailer with yt-dlp and render a preroll for new media, keeping a rolling total of ten items by default./ping healthcheck endpoint.GPL-3.0. You can run it, change it and redistribute it, but if you distribute a modified version you must make the source available under the same licence. That suits a self-hosted helper like this.