I use Letterboxd as my movie watched log.
This python script lets you sync your Letterboxd ratings to your Plex server (one-way only)
This script could be useful for:
- Making delete rules based on the more poorly rated movies using Maintainerr
- Using Plex Meta Manager for creating poster overlays containing your movie ratings
Simply run the script with python passing your config file as argument:
python3 letterboxd2plex.py --config config.yml
The script can be run periodically with cron. Here's an example running every 2 hours:
0 */2 * * * /usr/bin/python3 /path_to_script/letterboxd2plex.py --exit_on_match > /dev/null 2>&1
The --exit_on_match
flag stops the sync on the first rating match found. This is useful if you are running the script periodically, for decreasing the script run time.
You can more find information about the command arguments by running python3 letterboxd2plex.py -h
You can also trigger the script only when importing a movie, using with Radarr Custom Scripts. You should set a Custom Script as shown below:
You can install all the package dependencies by running the following command:
pip install -r requirements.txt
The script requires a YAML configuration containing:
- Your Letterboxd RSS feed url
- Your Plex server URL
- Your Plex device token. You can find more info on how to get it here
- Your Plex library name to sync
You can find an exaple configuration on sample_config.yml
If you are using this kind of script, it's likely that you are really into the Homelab thing. I also made a few custom scripts for missing functionalities like:
If you use Maintainerr for automatically deleting movies based on custom filters, this script could be useful.
Basically this script monitors selected Plex Collections and sends a Telegram notification when a new movie is added to them. You can set it to monitor Maintainerr filtered collections, and it will notify you when a movie triggered the filter.
Currently this functionality is missing from Maintainerr. I've added a feature request for this, but in the meantime this will do the trick.
Simply run the script with python passing your config file as argument:
python3 maintainerr4telegram.py --config config.yml