This is an updated version of KrunchMuffin's script. The only change is that it uses the Plex Token to log into the server, instead of needing a username and password entered each time the script is run. On top of that, it properly selects the server/libraries using Click in order to be run through a command. This allows for fullly hands-off automation if you prefer to set this up to run weekly via cron or another scheduling tool.
Export posters, backgrounds, banners, and theme songs from Plex.
sudo python3 -m pip install -r requirements.txt
python3 plex-poster-exporter.py --verbose
python3 plex-poster-exporter.py --username "<EMAIL>" --password "<PASSWORD>" --server "<SERVER>" --library "<LIBRARY>" --assets "<ASSETS>" --overwrite --verbose
All arguments are optional. If one is required and it is not provided, the script will ask you to enter it.
Option | Description | Default |
---|---|---|
--username | The username for Plex. | |
--password | The password for Plex. | |
--server | The Plex server name. | |
--library | The Plex library name. | |
--assets | Which assets should be exported? (all, posters, backgrounds, banners, themes) | all |
--overwrite | Overwrite existing assets? | False |
--verbose | Show extra information? | False |
--help | Show the help message and exit. |
This script expects all of your media files to be in the correct folder structure for Plex. If your files are not organized in the way that Plex recommends, you will not be able to use this.
Enjoy!