Skip to content

Script for automatically managing Plex collection posters and summaries.

License

Notifications You must be signed in to change notification settings

reztierk/plex_collections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plex_collections

This script is intended to be used to automatically update/check your Plex collection posters and summaries.

Add *** to the end of a collections "Sort Title" to have it be skipped. No updates will be applied (Useful for custom collections).
Posters:

Iterates through each collection checking the movies associated for the presence of a custom/local collection poster within the movie's directory (supports images with either '.png' or '.jpg' file extensions). 'local' is intended for automatically scraped assets from tools like tinyMediaManager, where 'custom' is intended for manually acquired assets you wish to be given priority. If local or custom posters are not found, it will attempt to download the top 5 collection posters from TMDB based on rating and appropriate language (determined by the language set on the Library the collection belongs to). On subsequent runs it will validate that the local assets are correctly selected when one is available, and detect when the default Plex generated poster is being used and select a different image to use if available.

Summaries:

Iterates through each collection checking if they contain a summary. If the summary is blank it will attempt to retrieve the one from TMDB (there is also a 'force' option which will update the summaries without checking if they are blank first).

Requirements

Built for Python 3, intended to be installed and ran within the same environment the plex server instance is installed (as it uses file system access to check posters).

Installation

git clone https://github.com/reztierk/plex_collections.git
cd plex_collections
pip install -r requirements.txt

Usage

setup

Used to set the required configuration values (triggered automatically of config.yaml is not found during script initialization).

python plex_collections.py setup

Required values:

list

Used to list all available Libraries (useful for easily obtaining a libraries ID)

python plex_collections.py list

run

Update Collections, by default it will update both posters and summaries but can target one or the other specifically by passing them as arguments. Can also be used with --dry-run to test before making changes, or --library to update only a specific libraries collections.

# Both posters and summaries
python plex_collections.py run

# Just posters
python plex_collections.py run posters

# Just summaries
python plex_collections.py run summaries

# Just posters, dry run and filter by library ID's 
python plex_collections.py run posters --dry-run --library=5 --library=8

Options:

-v, --debug
-d, --dry-run
-f, --force        Overwrite existing data.
--library INTEGER  Library ID to Update (Default all movie libraries)

About

Script for automatically managing Plex collection posters and summaries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages