Select the audio and subtitle tracks of your Plex movies and shows, in your language, with one command.
Why plexy
Plex has no setting for "always play the original audio, with subtitles in my language". You must select the audio and subtitle tracks for each movie and each episode. With a large library, this takes a long time.
plexy does it with one command, for all your libraries or for the titles that you select. You give a language and a watching preference:
| Preference | Audio track | Subtitle track |
|---|---|---|
original |
The original audio. | Your language, if the audio is not in your language. |
dubbed |
Your language. | Your language, only if no audio track is in your language. |
plexy gives a lower priority to:
- Commentary and audio description tracks.
- Forced subtitle tracks, for example "Signs & Songs".
- Closed caption (CC) and hearing-impaired (SDH) subtitle tracks.
Quick start
-
Install plexy:
uv tool install "plexy[yaml]"
-
Get your Plex token. Follow the Plex article Finding an authentication token.
-
Make a file
plexy.ymlin the current folder, with your server address and your token:url: http://myplexserver:32400 token: <your Plex token>
-
Run plexy on one movie. This example selects the original audio, and English subtitles if the audio is not in English:
$ plexy preferences --language en --title "The Matrix (1999)" --full-summary original Configuring watching preferences [####################################] 100% 1 movie changed out of 1 selected movie The Matrix (1999) changed from pt-BR: Português (SRT External) to no subtitles
-
If the result is correct, run it on all your libraries:
plexy preferences --language en original
Installation
Use one of these commands:
| Command | When to use it |
|---|---|
uv tool install "plexy[yaml]" |
Recommended. uv also installs Python if necessary. |
pipx install "plexy[yaml]" |
You already use pipx. |
The yaml extra is necessary only for a YAML configuration file. A JSON file works without it. The supported
Python versions are in pyproject.toml.
To upgrade, use uv tool upgrade plexy or pipx upgrade plexy.
For Docker, see Docker.
Usage
The examples use the configuration file from Quick start.
Only one movie, French subtitles with the original audio:
plexy preferences --language fr --title "The Matrix (1999)" original
A show, a season, or an episode, German audio:
plexy preferences --language de --title "Game of Thrones" dubbed
plexy preferences --language de --title "The Mandalorian s02" dubbed
plexy preferences --language de --title "Game of Thrones s03e09" dubbed
Only the "Movies" library, English audio:
plexy preferences --library Movies --language en dubbed
The titles that you added in the last week:
plexy preferences --language pt-BR --newer-than 1w original
Do not select an audio codec that your player cannot play. For example, the Chromecast with Google TV cannot play Dolby TrueHD:
plexy preferences --language pt-BR --excluded-audio-codec truehd original
Change only the subtitles, and keep the audio that you selected:
plexy preferences --language pt-BR --keep-selected-audio original
Select subtitles also when the audio is in your language:
plexy preferences --language en --force-subtitles dubbed
Two Plex users with different preferences, with one configuration file for each user (see More than one Plex user):
plexy --config <path>/me.yml preferences --language pt-BR original
plexy --config <path>/friend.yml preferences --language de dubbed
Main options
These are the options of plexy preferences. The last argument is the watching preference: original or
dubbed.
| Option | What it does |
|---|---|
-l, --language |
Your language, for example en or pt-BR. |
-t, --title |
Only this movie, show, season, or episode, for example The Matrix (1999) or The Boys s2. You can use it more than one time. |
-L, --library |
Only this library, for example Movies. You can use it more than one time. |
-n, --newer-than |
Only the titles added in this time, for example 12h or 1w2d. |
-o, --older-than |
Only the titles added before this time, for example 1w. |
-A, --excluded-audio-codec |
Do not select an audio track with this codec, for example truehd. |
-S, --excluded-subtitle-codec |
Do not select a subtitle track with this codec, for example eia_608. |
-f, --full-summary |
Show each change. |
--skip-watching |
Do not change a title that you started to watch and did not finish. |
--keep-selected-audio |
Do not change the audio track. |
--keep-selected-subtitle |
Do not change the subtitle track. |
--force-subtitles |
Select subtitles also when the audio is in your language. |
--debug |
Show information to report a bug. |
Before preferences, --url, --token, and --tmdb-key connect plexy to your server and to TMDB.
--user selects the Plex user.
--config gives a configuration file. For all options and their formats, see docs/usage.md.
The env vars PLEXY_TOKEN and PLEXY_TMDB_KEY, or PLEXY_TOKEN_FILE and PLEXY_TMDB_KEY_FILE, can also give
the secrets. See Token and TMDB key.
Configuration file
A configuration file can contain all the options. Put the options of plexy preferences in the
preferences section, with _ in place of -:
url: http://myplexserver:32400
token: <your Plex token>
preferences:
library:
- Movies
- TV Shows
excluded_subtitle_codec:
- eia_608
full_summary: true
language: pt-BR
watching_preference: original
With this file, this command is sufficient:
plexy preferences
plexy reads a file in your user configuration folder, plexy.yml in the current folder, and the file of the
--config option. An option on the command line replaces the value in the file. For the order and the
folders, see Configuration file.
More than one Plex user
plexy changes the tracks for one Plex user at a time. There are two methods to select the user.
One configuration file for each user (recommended). Each file contains the token of that user. Keep the
files outside your project folders, and give the path with --config:
# <path>/friend.yml
token: <the Plex token of friend>
One admin token for all users. With the token of the server admin, --user (or the user key) selects the
user. plexy gets a token for that user from plex.tv. The files then do not contain a token:
plexy --user friend preferences --language de dubbed
For the details, see More than one Plex user.
Original language from TMDB
For original, plexy finds the original language in the media file: the language of the default video track,
or else of the default audio track. Some files have a default track in a dubbed language. For a better
result, add a free TMDB key to your configuration file:
tmdb_key: <your TMDB read access token>
To get a key, see Original language from TMDB.
FAQ
Which track does plexy select when many tracks are in my language? plexy sorts the tracks with rules, for example a normal track before an SDH track. See Stream selection.
Why did plexy remove my subtitles?
plexy removes the subtitles when the audio is in your language. To keep subtitles, use --force-subtitles.
Does plexy change the tracks for all the users of my Plex server?
No. It changes them only for one Plex user: the user of the token, or the user of --user. For a second user,
use a configuration file with the token of that user, or the admin token with --user. See
More than one Plex user.
Does plexy change my media files? No. It changes only the track selection on the Plex server.
How do I go back to the old tracks? plexy does not keep the old selection. Run plexy again with other options, or select the tracks in Plex.
plexy says "No video found". Why?
No title matches your filters. Check the name of the title and the library. When --title has a year, it
must be the year in Plex.
Report a bug
Open an issue. Add the output of the command with the --debug
option. Before you send the output, make sure that it does not contain your Plex token or your TMDB key.
Contributing
See CONTRIBUTING.md.
License
MIT. See LICENSE.
The plexy name, logo, and icon are not covered by the MIT license. All rights reserved.
Metadata
Release files for plexy 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plexy-0.3.1.tar.gz | 490.5 kB | With provenance | Details for plexy-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plexy-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for plexy-0.3.1-py3-none-any.whl |
Total release size: 510.1 kB
Release files / plexy-0.3.1.tar.gz
| Download URL | plexy-0.3.1.tar.gz |
|---|---|
| Size | 490.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
740151121d9807a7b49136696d757dfd1bc1af68f6216dfe3da9b698e0cd3cb3
|
|
BLAKE2b-256 checksum How to use checksums |
eb0df4e806af18c7e616c03f75d2adeffa9180d20809994c48a3bc2ad6545fd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / plexy-0.3.1-py3-none-any.whl
| Download URL | plexy-0.3.1-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8746d6c5bce5effac5738797f71b5f73bf4465ef4979ca1225855d1821fd718f
|
|
BLAKE2b-256 checksum How to use checksums |
ecdedfa381737d8b7328f4986f3908936d5eb1113b44582f17dcd8cffdb1c328
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for plexy 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for plexy-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.