This script will set all movies and shows in your local Plex library to English non forced subtitles by default.
Project description
PlexPreferNonForcedSubs
Short description:
This python script will set all movies and shows in your local Plex library to English non forced subtitles by default. The subtitle selections will apply to your Plex profile and be remembered on other devices.
Long description:
This script was created with the help of ChatGPT Open AI and further edited and completed by me. It uses Plex Python Api. It will set all movies and shows in your local Plex library to English non forced subtitles by default. The subtitle selections will apply to your Plex profile and be remembered on other devices. Assuming your Plex subtitles settings are setup in your server settings Plex will default to Forced Subtitles by default when they are available for a given item. Plex will not allow you to prefer non forced subtitles natively hence why this script was created.
This script is confirmed tested and working. Feel free to use this code for your own purposes. I will be running this code periodically on my home server along with some of my other neat little plex scripts like Plex Auto Delete. Thanks to all who helped! If you use this script and run into any bugs feel free to open an issue. Cheers!
What are "non-forced" subtitles?
Non-forced subtitles provide subtitles everytime a characters speaks.
What are "forced" subtitles?
Forced subtitles only provide subtitles when the characters speak a foreign or alien language.
Install Instructions:
- Install Python.
- Run
python -m pip install PlexPreferNonForcedSubs
in command line. - Make sure Plex media server is running then run the script using
PlexPreferNonForcedSubs
in command line. - On first run the script will ask you to fill in your Plex token. Your token will be saved locally in the same folder as token.txt.
- Done
Note: This script should work on any OS where Python is installed (Windows, MacOS and Linux etc).
Run:
PlexPreferNonForcedSubs
in command line.
Update:
python -m pip install PlexPreferNonForcedSubs --upgrade
in command line.
Uninstall:
python -m pip uninstall PlexPreferNonForcedSubs
in command line.
Known issues/future outlook:
- Several lines of redundant code can be shortened and/or removed
Also posted on:
Screenshots:
Plex subtitle dropdown after script is done running:
PlexPreferNonForcedSubs.py script in action:
Donations, Sponsorships and Custom Projects:
Like my scripts? Become a sponsor and support my projects! See below for other donation options. Need help with a project? Open an issue and I will try my best to help! For other inquiries and custom projects contact me on Twitter.
More donation options:
- Cashapp:
$rileyxx
- Venmo:
@rileyxx
- Bitcoin:
bc1qrjevwqv49z8y77len3azqfghxrjmrjvhy5zqau
- Amazon Wishlist: Link ↗
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for PlexPreferNonForcedSubs-2.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e14aefbaabf0d953667bac545bf9b098e971282ed4209b6b352ba9d4cb0e8f37 |
|
MD5 | b00a9b9316aa46647111358a9d46ac44 |
|
BLAKE2b-256 | 1259f0a4e24e9b56c1591db43d68378c63a2edd64ad31e227ef55943c2a1e7cd |
Hashes for PlexPreferNonForcedSubs-2.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b8c48417a178fdad942a0a9660e4b65f15d65ec43737c53acf5577703ab1f6d |
|
MD5 | b20a74a2dcdb4e2d5327a75fd4308ead |
|
BLAKE2b-256 | a5c661621a431336b5b24f65acf3aa3e16c7d9d8e93e2efaf13d5f7c99536b63 |