Retrieves IMDB trailers of your movies and imports them as background video themes in Jellyfin using .strm files
Python
43
25 commits
updated Jul 12, 2025
Automatically manage IMDb trailers for your media library.
Trailerfin is a tool for automatically retrieving and refreshing IMDb trailer links for your media library as the backdrop video.
Instead of downloading the trailer locally, it will create a .strm file that Jellyfin can use to play the video.
It will check the expiration of the link and only update when the link has expired.
git clone https://github.com/Pukabyte/trailerfin.git
cd trailerfin
Create a .env file in the project root with the following variables:
SCAN_PATH=/path/to/your/media
VIDEO_FILENAME=trailer.strm
WORKERS=4
VIDEO_START_TIME=10
SCAN_PATH: Directory to scan for IMDb IDsVIDEO_FILENAME: Name of the .strm file to updateWORKERS: Amount of workers to useVIDEO_START_TIME: Start time in seconds for the video (default: 10)docker build -t trailerfin .
docker run --env-file .env -v /path/to/your/media:/mnt/plex trailerfin
A sample docker-compose.yml is provided:
services:
trailerfin:
build: .
container_name: trailerfin
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
volumes:
- /mnt:/mnt # Make sure this directory is where your content can be found in
- /opt/trailerfin:/app
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
Start with:
docker-compose up -d
python trailerfin.py --dir /path/to/your/media
python trailerfin.py --dir /path/to/your/media --monitor
This mode will:
ignored_titles.jsonLogs are output to stdout and can be viewed with Docker logs or Compose logs. The logging includes:
MIT License
Python
99.1%
Retrieves IMDB trailers of your movies and imports them as background video themes in Jellyfin using .strm files
Python
43
25 commits
updated Jul 12, 2025
Automatically manage IMDb trailers for your media library.
Trailerfin is a tool for automatically retrieving and refreshing IMDb trailer links for your media library as the backdrop video.
Instead of downloading the trailer locally, it will create a .strm file that Jellyfin can use to play the video.
It will check the expiration of the link and only update when the link has expired.
git clone https://github.com/Pukabyte/trailerfin.git
cd trailerfin
Create a .env file in the project root with the following variables:
SCAN_PATH=/path/to/your/media
VIDEO_FILENAME=trailer.strm
WORKERS=4
VIDEO_START_TIME=10
SCAN_PATH: Directory to scan for IMDb IDsVIDEO_FILENAME: Name of the .strm file to updateWORKERS: Amount of workers to useVIDEO_START_TIME: Start time in seconds for the video (default: 10)docker build -t trailerfin .
docker run --env-file .env -v /path/to/your/media:/mnt/plex trailerfin
A sample docker-compose.yml is provided:
services:
trailerfin:
build: .
container_name: trailerfin
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
volumes:
- /mnt:/mnt # Make sure this directory is where your content can be found in
- /opt/trailerfin:/app
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
Start with:
docker-compose up -d
python trailerfin.py --dir /path/to/your/media
python trailerfin.py --dir /path/to/your/media --monitor
This mode will:
ignored_titles.jsonLogs are output to stdout and can be viewed with Docker logs or Compose logs. The logging includes:
MIT License
Python
99.1%