ColleXions automates the process of pinning collections to your Plex home screen, making it easier to showcase your favorite content. With customizable features, it enhances your Plex experience by dynamically adjusting what is displayed either controlled or completely randomly - the choice is yours. Version 1.11+ includes collaboration with @defluophoenix
Randomized Pinning: ColleXions randomly selects collections to pin each cycle, ensuring that your home screen remains fresh and engaging. This randomness prevents the monotony of static collections, allowing users to discover new content easily.
Special Occasion Collections: Automatically prioritizes collections linked to specific dates, making sure seasonal themes are highlighted when appropriate.
Exclusion List: Users can specify collections to exclude from pinning, ensuring that collections you don't want to see on the home screen are never selected. This is also useful if you manually pin items to your homescreen and do not want this tool to interfere with those.
Inclusion List: Users can specify collections to include from pinning, ensuring full control over the collections you see on your home screen.
Customizable Settings: Users can easily adjust library names, pinning intervals, and the number of collections to pin, tailoring the experience to their preferences.
Categorize Collections: Users can put collections into categories to ensure a variety of collection are chosen if some are too similar
Collection History: Collections are remembered so they don't get chosen too often
If always_call
is set to true
, the script will attempt to pin one collection from each category at all times, as long as there are available slots.
If always_call
is set to false
, the script randomly decides for each category whether to pin a collection from the category. If it chooses to pin, it will only pick one collection per category.
[!TIP] If you have more than 20 collections per category it is recommended to use
true
Include & Exclude Collections
Exclude Collections: The exclusion list allows you to specify collections that should never be pinned or unpinned by ColleXions. These collections are "blacklisted," meaning that even if they are randomly selected or included in the special collections, they will be skipped, any collections you have manually pinned that are in this list will not be unpinned either. This is especially useful if you have "Trending" collections that you wish to be pinned to your home screen at all times.
Include Collections: The inclusion list is the opposite of the exclusion list. It allows you to specify exactly which collections should be considered for pinning. This gives you control over which collections can be pinned, filtering the selection to only a few curated options. Make sure "use_inclusion_list": false,
is set appropriately for your use case.
If the inclusion list is enabled (i.e., use_inclusion_list is set to True), ColleXions will only pick collections from the inclusion list. Special collections are added if they are active during the date range.
If no inclusion list is provided, ColleXions will attempt to pick collections randomly from the entire library while respecting the exclusion list. The exclusion list is always active and prevents specific collections from being pinned.
If the inclusion list is turned off or not defined (use_inclusion_list is set to False or missing), the exclusion list will still be honored, ensuring that any collections in the exclusion list are never pinned.
The ColleXions tool organizes pinned collections based on a defined priority system to ensure important or seasonal collections are featured prominently:
Special Collections First: Collections marked as special (e.g., seasonal or themed collections) are prioritized and pinned first, these typically are collections that have a start and an end date.
Category-Based Collections: After special collections are pinned, ColleXions will then fill any remaining slots with collections from specified categories, if defined in the config.
Random Selections: If there are still available slots after both special and category-based collections have been selected, random collections from each library are pinned to fill the remaining spaces.
If no special collections or categories are defined, ColleXions will automatically fill all slots with random collections, ensuring your library's home screen remains populated with the amounts specified in your config.
A file titled selected_collections.json
is created on first run and updated each run afterwards and keeps track of what's been selected to ensure collections don't get picked repeatedly leaving other collections not being pinned as much. It resets after 3 days so hopefully you will only see a collection once every three days at most. This will depend on the amount of collections you have available and the amount you are asking ColleXions to pin will also play a part.
Extract the files in the location you wish to run it from
Run pip install -r requirements.txt
to install dependencies
Update the config.json
file with your Plex URL, token, library names, and exclusion/inclusion lists.
Run python3 ColleXions.py
[!CAUTION] You should never share your Plex token with anyone else.
Download the config.json
and edit to your liking
https://github.com/jl94x4/ColleXions/blob/main/config.json
docker run -it --name ColleXions \
-v /path/to/collexions/config.json:/app/config.json \
-v /path/to/collexions/logs:/app/logs \
docker.io/jl94x4/collexions
services:
collexions:
image: jl94x4/collexions
container_name: collexions
volumes:
- /path/to/collexions/config.json:/app/config.json
- /path/to/collexions/logs:/app/logs
restart: unless-stopped
Then run docker-compose up -d
[!TIP] pinning_interval is in minutes
ColleXions now includes a Discord Webhook Integration feature. This enhancement enables real-time notifications directly to your designated Discord channel whenever a collection is pinned to the Home and Friends' Home screens.
Configuration: Include your Discord webhook URL in the config.json
file.
Notifications: Every time a collection is successfully pinned, the tool sends a formatted message to the specified Discord channel, highlighting the collection name in bold.
This feature helps you keep track of which collections are being pinned, allowing for easy monitoring and tweaks to ensure diversity and relevance.
After every run collexions.log
will be created with a full log of the last successful run. It will be overwritten on each new run.
Thanks to the PlexAPI library and the open-source community for their support. Thanks to defluophoenix for the additional work they've done on this
This project is licensed under the MIT License.