Plex-Meta-Manager/docs/defaults/guide.md

133 lines
5.8 KiB
Markdown
Raw Normal View History

2022-10-20 20:38:53 +00:00
# Defaults Usage Guide
2024-04-22 14:20:12 +00:00
Kometa includes a pre-created set of Collection Files and Overlay Files which can be found in the "defaults" folder in
the root of your Kometa installation directory.
2022-10-20 20:38:53 +00:00
2024-04-22 14:20:12 +00:00
These files offer an easy-to-use and customizable set of Collections and Overlays that the user can achieve without
having to worry about creating the files that make the collections and overlays possible.
2022-10-20 20:38:53 +00:00
2024-04-22 14:20:12 +00:00
All Collections come with a matching poster to make a clean, consistent set of collections in your library. These files
are stored in the [Kometa Images](https://github.com/Kometa-Team/Default-Images) Repository and each poster is downloaded straight to your Plex Collection when
you run Kometa.
2022-10-20 20:38:53 +00:00
2024-04-22 14:20:12 +00:00
Credits to Sohjiro, Bullmoose20, Yozora, Cpt Kuesel, and anon_fawkes for helping drive this entire Default Set of
Configs through the concept, design and implementation.
2022-10-20 20:38:53 +00:00
Special thanks to Magic815 for the overlay image inspiration and base template.
Please consider [donating](https://github.com/sponsors/meisnate12) towards the project.
## Configurations
2024-04-29 17:52:24 +00:00
To run a default Kometa Collection or Overlay file you can simply add it to your `collection_files` (For Collection Files)
2024-04-22 14:20:12 +00:00
or `overlay_files` (For Overlay Files) using `default` like so:
2022-10-20 20:38:53 +00:00
```yaml
libraries:
Movies:
collection_files:
2024-04-22 14:20:12 +00:00
- default: actor
- default: genre
overlay_files:
2024-04-22 14:20:12 +00:00
- default: ribbon
- default: ratings
2022-10-20 20:38:53 +00:00
```
2024-04-29 17:52:24 +00:00
## Customizing these defaults
Configs can be customized using the `template_variables` attribute when calling the file.
2024-04-29 17:53:10 +00:00
These template variables can be used to customize individual collections/overlays or the set as a whole.
2024-04-29 17:52:24 +00:00
A given default may have variables that are specific to it, and may also leverage a common set of shared template variables. These lists are shown on each default file's wiki page.
2022-10-20 20:38:53 +00:00
2024-04-29 17:52:24 +00:00
## Customizing individual components
2022-10-20 20:38:53 +00:00
2024-04-29 17:56:38 +00:00
Each default file uses "keys" to refer to the collections and overlays that it creates, and you can use those keys to modify the behavior of individual collections or overlays created by the file.
2024-04-29 17:52:24 +00:00
For, example, the IMDB default creates three collections, each with their own "key":
| Collection | Key |
|:--------------------|:----------|
| `IMDb Popular` | `popular` |
| `IMDb Top 250` | `top` |
| `IMDb Lowest Rated` | `lowest` |
You use that key to customize the individual collection or overlay.
This example disables two keys, which will prevent those collections from being created. It also sets
the visibility of one of the keys [`top`] so that it is visible on the library tab, the server owner's homescreen and shared
user's homescreens (assuming the server owner and/or the shared users have the library pinned to their homescreen)
It also changes the resolution overlay to skip applying the overlay to 480p movies.
The template variables in this example happen to be all shared template variables.
```yaml
libraries:
Movies:
collection_files:
- default: imdb
template_variables:
use_popular: false # turn off the 'popular' key
use_lowest: false # turn off the 'lowest' key
visible_library_top: true # set visibilities for the 'top' key
visible_home_top: true
visible_shared_top: true
overlay_files:
- default: resolution
template_variables:
use_480p: false # turn off the '480p' key
```
## Customizing the set as a whole
In addition to the keys, each default can be customized with other template variables that are not key-specific.
This example uses a file-specific variable to change the order of all the IMDB chart collections to alphabetical by title and a shared variable to schedule these IMDB collections to be run only on Wednesdays.
2024-04-29 17:56:38 +00:00
On the `resolution` overlay, it uses a file-specific variable to disable all the "edition" overlays and a shared variable to align the overlay on the right side of the poster.
2022-10-20 20:38:53 +00:00
```yaml
libraries:
TV Shows:
collection_files:
2024-04-22 14:20:12 +00:00
- default: imdb
2022-10-20 20:38:53 +00:00
template_variables:
2022-10-29 15:59:01 +00:00
use_popular: false
use_lowest: false
visible_library_top: true
visible_home_top: true
visible_shared_top: true
2024-04-29 17:52:24 +00:00
collection_order: alpha # file-specific variable sets sort order
schedule: weekly(wednesday) # shared variable sets schedule
overlay_files:
2024-04-29 17:52:24 +00:00
- default: ribbon
2022-10-20 20:38:53 +00:00
template_variables:
2024-04-29 17:52:24 +00:00
use_480p: false
use_edition: false # file-specific variable hides editions
horizontal_align: right # shared variable sets alignment
2022-10-20 20:38:53 +00:00
```
2024-04-29 17:52:24 +00:00
All of the default files are customized in this basic fashion.
**NOTE: this `template_variable` system is specific to the defaults. If and when you start creating your own [collection](../files/collections.md) or [overlay](../files/overlays.md) files, you cannot use this `template_variables` setup unless you specifically write your files to implement it.**
Each of these default files has a page on the wiki showing its keys, available `template_variables`, and default settings. For example, the default overlay `default: resolution` has a page [here](overlays/resolution.md).
2024-04-29 17:56:38 +00:00
The shared template variables can be reviewed here for [Collections](collection_variables.md) and [Overlays](overlay_variables.md). These are also linked from each default file's wiki page. Keep in mind that *most*, but not all default files have access to the shared variables. This will be noted on the individual files' page.
2024-04-29 17:52:24 +00:00
## Collection Defaults
See the [Collection Defaults](collections.md) Page for more information on the specifics of the Collection Defaults.
## Overlay Defaults
See the [Overlay Defaults](overlays.md) Page for more information on the specifics of the Overlay Defaults.
2022-10-20 20:38:53 +00:00
2024-04-29 17:52:24 +00:00
# Example config using the defaults
2022-10-20 20:38:53 +00:00
2023-11-06 20:38:00 +00:00
{%
include-markdown "./example.md"
%}