Tired of Plex defaulting to the wrong language on dual-audio shows and forcing you to change audio or subtitle tracks on every. single. episode? Frustrated trying to guess which of two identical English (SRT) tracks is Signs & Songs and which is the full dialogue? Or annoyed when Sonarr upgrades an episode and wipes out your selected tracks?
PASTA fixes how you manage audio and subtitles in Plex - both manually and automatically:
Forced / SDH flags) and apply your choice across a Season, Show, Collection, or Entire Library in one click.PASTA can run in two modes depending on how you want to use it:
| Feature | Client Mode (pastatool.com or PASTA_MODE=client) | Server Mode (Docker default: PASTA_MODE=server) |
|---|---|---|
| How it runs | 100% in your browser (static web app) | Self-hosted Docker container |
| Manual Batch Updates | Episode, Season, Show, Collection, Library (runs locally in-browser) | Episode, Season, Show, Collection, Library (runs in the background on server) |
| Multi-Server & Home Users | Switch between Plex servers and Plex Home profiles (including PINs) | Switch between Plex servers and Plex Home profiles, with independent automation per owned server |
| Shared User Access | Shared users can sign in to update their own tracks on servers shared with them | Shared users can sign in to update their own tracks and view their own batch logs (admin features stay hidden unless granted PASTA Admin) |
| Multi-User Batching | Current user only | Admins can update tracks for Current User, All Users, or Specific Users at once |
| TV Track Automation | No | Automatically syncs tracks across episodes as users watch or when new/upgraded episodes are added |
| Admin Console & Rules | No | Per-library, per-show, and keyword rules, auto-forced subtitle matching, activity logs, and delegated PASTA Admins |
The official cglatot/pasta:latest (and ghcr.io/cglatot/pasta:latest) image supports both Server Mode (the default) and Client Mode via the PASTA_MODE environment variable.
In Server Mode, PASTA runs both the web UI and the background automation service, storing your settings and activity logs in /config.
services:
pasta:
image: cglatot/pasta:latest
# Also available on GitHub Container Registry:
# image: ghcr.io/cglatot/pasta:latest
container_name: pasta
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./appdata:/config
environment:
- PORT=80
- PASTA_MODE=server
- PASTA_CONFIG_DIR=/config
# Optional: Enable verbose debug logging to container logs
# - PASTA_DEBUG=false
# Optional: Override the auto-generated /config/.pasta_secret with a fixed secret
# - PASTA_SECRET=your-custom-secret-here
Tip for Docker / LAN Setups: Once signed in as the Server Owner, open Admin Settings -> Server Configuration if you want to set a direct local LAN URL (e.g.
http://192.168.1.50:32400) for fastest container-to-Plex communication.
PASTA is available directly in Unraid Community Applications - just search for PASTA in the Apps tab, or get it directly from the CA Web Store.
Important Note for Unraid Users (Upgrading to PASTA 3.0):
Because PASTA 3.0 introduces Server Mode, the updated template adds a persistent
/configpath mapping and new environment variables. The recommendation is to do a clean install using the new template:
- Remove your existing PASTA container in the Unraid Docker tab.
- Go to Apps -> Previous Apps and delete the old saved PASTA template (otherwise Unraid will reuse your cached 2.x template).
- Search PASTA in Apps and click Install to pull the new v3.0 template.
PASTA_MODE=client)If you prefer to self-host the browser-only web app (identical to pastatool.com) with no stored settings or background automation, set PASTA_MODE=client:
services:
pasta:
image: cglatot/pasta:latest
container_name: pasta
restart: unless-stopped
ports:
- "8087:80"
environment:
- PASTA_MODE=client
cglatot/pasta publishes multi-arch images (linux/amd64 and linux/arm64). If you prefer to build from source on an ARM device:
git clone https://github.com/cglatot/pastacd pastadocker buildx build -t "cglatot/pasta:latest" --platform linux/arm64 .docker compose up -dForced / SDH indicators.Commentary or Signs) to only match tracks containing that text, or let PASTA automatically pick the closest matching track across episodes when files vary slightly.
In Admin Settings -> Server Configuration, you can control how and when PASTA automatically syncs TV show tracks in the background for every user on your server:
None will automatically select a Forced subtitle track matching the selected audio language if one exists (great for foreign dialogue scenes when watching in your native audio language).
In Admin Settings -> Library Settings, you can fine-tune where automation and automatic forced subtitles are allowed to run:
PASTA_IGNORE, PAL-IGNORE, and PASTA_NO_FORCED out of the box.
You can share your self-hosted PASTA URL with friends and family who have access to your Plex server:
PASTA keeps separate, filterable logs so you can always see what was updated and why:
Admin Settings -> Logs): Shows every background sync triggered by playback, pre-play changes, or newly added/upgraded episodes. Click any entry to expand a full episode-by-episode breakdown of what changed and what was skipped.User Menu -> Logs): Shows the history of manual batch runs, including who started the batch, which users it was applied to, the target show/season/library, and the results.In Admin Settings -> Debugging, you'll find tools to help troubleshoot or catch up after server downtime:
PASTA_DEBUG=true in your container environment).
I first created PASTA 7 years ago (2 weeks shy of exactly 7 years, at the time of writing) to fill a niche that Plex didn't do itself. There were some scripts around at the time, but using them was a pain and they weren't very user-friendly. So I wanted to make something a bit easier.
It was only supposed to be a temporary thing until Plex built the functionality into Plex itself. Surely it couldn't take that long.... could it?
Why "PASTA"?
When I started development, I was calling it Audio Track Automation for Plex, so adding "subtitles" to it and rearranging the letters gave birth to PASTA. Super inventive, I know.
PASTA was never intended to have a server-side aspect to it. The whole point of it was to run in a browser and be completely client-side. Partly because that was my strongest skills, but also because I didn't want to deal with the complexity of a server-side engine, storage, secrets, etc.
Luckily, not too long after PASTA, Plex-Auto-Languages (PAL) came along. Most people (including me) made the switch to that, as it does it all automatically for you (most of the time anyway)! I figured at that point, PASTA would die out and no longer be needed. But I was, once again, wrong.
A Huge Thank You
This is the part where I should say thank you to everyone that has contributed to, used, donated, or otherwise engaged with PASTA. I honestly haven't used it all that much myself since PAL came along, and I only really kept up with it because you, the people, still wanted it. And I'm grateful for that too. It really feels good to have made something that people value and get use out of.
I just said that I never intended to have a server-side function, so why the change of heart? A few reasons, really, but the main three are:
The approach I've taken is also slightly different from how PAL does things - whether or not those end up being for better or for worse are yet to be seen! Please do let me know by opening up an issue or pull request!
docker pull cglatot/pasta:latest