The Plex Title Card Provider is an add-on that gives each episode in your Plex library a proper title card, instead of a blank box or a random frame from the video.
I buy almost everything RiffTrax puts out, and I keep it all on my own Plex server. Plex does a good job with most of it: it finds the right episodes, pulls in titles, cast and summaries, and everything plays offline. The one thing it couldn't do was show a proper picture for each episode. Most episodes ended up with a blank box or a random frame from the video, which makes browsing a few hundred shorts a lot less fun than it should be.
So I wrote a small add-on for Plex that fixes that. It's called the Plex Title Card Provider, and this article explains what it does, how it works, and how to set it up yourself.
The problem
Plex shows each episode with a wide 16:9 image, often called a title card. For most TV shows, Plex's built-in metadata providers fetch these from online databases, along with the episode titles and descriptions.
RiffTrax doesn't fit that pattern well. It's a TV show made of movies: each "episode" is a whole film or a short, and Plex has limited support for that kind of show. The providers find the titles and descriptions, but not the title cards, so Plex falls back to a blank box or a frame from the video.
The artwork does exist. Each title's page on the RiffTrax site has a tall poster, which you can see on the page, and a wide image that would make a perfect title card, which isn't shown anywhere. Uploading the poster by hand doesn't work well: Plex crops it to fit the wide frame and cuts off the top and bottom. You can pad each poster out to the right shape in an image editor, but with hundreds of episodes that takes hours, and you have to do it all again if Plex ever loses the artwork.
The solution
Since version 1.43, Plex Media Server supports custom metadata providers: small web services that Plex can ask for information about your media. The Title Card Provider is one of these. You give it a folder of images, and when Plex refreshes your library, it hands Plex the right title card for each episode.
It only supplies the pictures. Plex's built-in TV agent (Plex Series) still does everything else, such as matching episodes and filling in titles and descriptions. The provider just adds artwork on top.
RiffTrax was the reason I built it, but nothing in it is specific to RiffTrax. It works for any show you have title card images for.
How it works
- You put images in a folder, named the same way Plex names episodes, for example
RiffTrax - S01E141.jpg. They can sit in the top of the folder or in subfolders such asRiffTrax/Season 01/, the same layout many people already use for their video files. - The provider reads the folder and keeps a list of which episodes have a card. When you add, rename or delete an image, it notices within a few seconds and updates the list. It also rescans the whole folder once a day as a backup.
- Plex asks the provider about your show when it refreshes the library. For each episode that has a card, the provider replies with a link to the image.
- Plex downloads the image from the provider and shows it as the episode's thumbnail, everywhere Plex shows episodes.
Where the images come from
The hidden wide image is the page's "share" image, the one that appears when you post a link to social media. I wrote a small script that takes the list of episodes from Plex, finds each one's page on the RiffTrax site, downloads that share image, sizes it to 1920×1080, and saves it with the right file name. A few titles need their page looked up by hand, but most are found automatically.
What you need
- Plex Media Server 1.43.0 or newer.
- A computer or server that can run Docker, or Java if you'd rather run it directly.
- An address your Plex server can reach. That can be your home network address if everything lives at home, or a domain name if the provider runs somewhere else.
- A folder of title card images, named as described above.
Setting it up
The project includes a ready-made Docker Compose setup. It runs the provider together with Caddy, a web server that sits in front of it and handles HTTPS certificates. For a server on the internet, you point a domain at the server, tell the provider the domain and where your images are, and start it with one command. On a home network you can skip HTTPS and use the machine's local address instead.
Once it's running, you add it to Plex:
- In Plex, open Settings → Metadata Agents and add the provider by its address (it ends in
/tv). - Create a new agent with Plex Series as the primary provider, and add the title card provider under Additional Providers.
- Edit your TV library, open Advanced, and select the new agent.
- Run Fix Match on each show and pick the same show again, so Plex uses the new agent for it.
The project's README has the full instructions and a list of every setting.
Things worth knowing
- Keep Plex Series as the primary provider. The title card provider can be the primary, but then Plex hides every episode that doesn't have a card yet.
- Check the show's episode ordering. If episodes show up as "Episode 81" with no title, Plex can't find them in the episode order the show uses. For RiffTrax, setting the show's episode ordering to TheTVDB fixed it for me.
- Sometimes Plex needs a nudge. If a new card doesn't appear, refresh the whole show rather than one episode. If that doesn't do it, restart Plex: it remembers provider details and doesn't always notice changes.
- Plex keeps the image you already picked. If an episode already had a thumbnail selected, the new card appears in its list of images, but you need to select it once.
- Anyone who knows the address can use it. Plex doesn't support logins for providers yet, so the provider's address is open to anyone who finds it.
Under the hood
For the curious: the provider is written in Kotlin and runs as a small web service. It has unit tests and integration tests that start the real server and send it the same requests Plex does. Every change runs through automated builds on Codeberg that check the tests, the code formatting, and that test coverage never goes down.
Get it
The code, setup instructions and Docker files are on Codeberg: codeberg.org/jonquass/plextitlecardprovider. If you try it, run into a problem, or get it working with a show other than RiffTrax, I'd like to hear about it.