This utility script is designed to work alongside Kometa, helping you manage the visibility of your Plex collections. It enables you to turn on or off the visibility of collections in the Plex front end based on your preferences.
- Randomly select collections from specified groups and set their visibility.
- Supports user confirmation if chosen.
- Handles multiple collection YML files, ensuring collections are managed separately and correctly.
- Integrates with
cron
for scheduled updates. - Docker image.
- Python 3.10 or higher
pip
for Python package managementcron
(for scheduling on Unix-like systems)
- Clone the Repository
git clone https://github.com/bothari/kometa-random.git cd kometa-collection-utility```
Create a config.yml
file in the root directory of the project with the following structure:
files:
- "path/to/your/collections1.yml"
- "path/to/your/collections2.yml"
groups:
_group_name: 3 # Number of collections to select from this group
_another_group_name: 5
confirmation: true # Set to false to disable user confirmation
schedule: "5 7 * * *" # Cron schedule to run the script (e.g., 7:05 AM daily)
- files: List of paths to your Kometa collection YML files.
- groups: Specify the number of collections to select for each group (label must start with _).
- confirmation: Enable or disable user confirmation for selections.
- schedule: Cron schedule for running the script.
You can run the script manually using:
python kometa-random.py
docker run --rm -v $(pwd)/config.yml:/app/config.yml kometa-utility
- Ensure the config.yml file is properly mounted in the container.