2022-10-17 06:48:08 +00:00
|
|
|
# Runtimes Overlay
|
|
|
|
|
2024-01-07 08:07:13 +00:00
|
|
|
The `runtimes` Default Overlay File is used to create an overlay of the movie runtime, episode runtime, or average
|
|
|
|
episode runtime for all items in your library.
|
2022-10-17 06:48:08 +00:00
|
|
|
|
|
|
|
![](images/runtimes.png)
|
|
|
|
|
2023-01-21 00:20:33 +00:00
|
|
|
## Requirements & Recommendations
|
|
|
|
|
2023-08-09 17:37:59 +00:00
|
|
|
Supported Overlay Level: Movie, Show, Season, Episode
|
2023-01-21 00:20:33 +00:00
|
|
|
|
2022-10-17 06:48:08 +00:00
|
|
|
## Config
|
|
|
|
|
|
|
|
The below YAML in your config.yml will create the overlays:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
libraries:
|
|
|
|
Movies:
|
2023-12-12 22:03:15 +00:00
|
|
|
overlay_files:
|
2022-10-17 06:48:08 +00:00
|
|
|
- pmm: runtimes
|
|
|
|
TV Shows:
|
2023-12-12 22:03:15 +00:00
|
|
|
overlay_files:
|
2022-10-17 06:48:08 +00:00
|
|
|
- pmm: runtimes
|
2023-01-27 13:40:34 +00:00
|
|
|
- pmm: runtimes
|
|
|
|
template_variables:
|
2023-05-18 14:18:30 +00:00
|
|
|
builder_level: episode
|
2022-10-17 06:48:08 +00:00
|
|
|
```
|
|
|
|
|
2023-12-31 16:45:00 +00:00
|
|
|
## Template Variables
|
2022-10-17 06:48:08 +00:00
|
|
|
|
2024-01-07 08:07:13 +00:00
|
|
|
Template Variables can be used to manipulate the file in various ways to slightly change how it works without having to
|
|
|
|
make your own local copy.
|
2022-10-17 06:48:08 +00:00
|
|
|
|
2024-01-07 08:07:13 +00:00
|
|
|
Note that the `template_variables:` section only needs to be used if you do want to actually change how the defaults
|
|
|
|
work. Any value not specified will use its default value if it has one if not it's just ignored.
|
2022-10-17 06:48:08 +00:00
|
|
|
|
2024-01-07 08:07:13 +00:00
|
|
|
??? abstract "Variable Lists (click to expand)"
|
|
|
|
|
|
|
|
* **File-Specific Template Variables** are variables available specifically for this PMM Defaults file.
|
|
|
|
|
|
|
|
* **Overlay Template Variables** are additional variables shared across the PMM Overlay Defaults.
|
|
|
|
|
|
|
|
* **Overlay Text Template Variables** are additional variables shared across the PMM Text Overlay Defaults.
|
2022-10-17 06:48:08 +00:00
|
|
|
|
2024-01-05 21:55:28 +00:00
|
|
|
??? example "Default Template Variable Values (click to expand)"
|
2024-01-05 21:06:39 +00:00
|
|
|
|
|
|
|
| Variable | Default |
|
|
|
|
|:--------------------|:------------|
|
|
|
|
| `horizontal_offset` | `15` |
|
|
|
|
| `horizontal_align` | `right` |
|
|
|
|
| `vertical_offset` | `30` |
|
|
|
|
| `vertical_align` | `bottom` |
|
|
|
|
| `back_color` | `#00000099` |
|
|
|
|
| `back_radius` | `30` |
|
|
|
|
| `back_width` | `600` |
|
|
|
|
| `back_height` | `105` |
|
|
|
|
|
2023-12-31 16:45:00 +00:00
|
|
|
=== "File-Specific Template Variables"
|
2022-10-17 06:48:08 +00:00
|
|
|
|
2024-01-05 21:06:39 +00:00
|
|
|
| Variable | Description & Values |
|
|
|
|
|:----------|:-----------------------------------------------------------------------------------------------------------------------------------------|
|
|
|
|
| `text` | **Description:** Choose the text that appears prior to the runtime on the Overlay.<br>**Default:** `Runtime: `<br>**Values:** Any String |
|
2023-12-31 16:45:00 +00:00
|
|
|
|
|
|
|
=== "Overlay Template Variables"
|
|
|
|
|
|
|
|
{%
|
2024-01-07 08:07:13 +00:00
|
|
|
include-markdown "../overlay_variables.md"
|
2023-12-31 16:45:00 +00:00
|
|
|
%}
|
|
|
|
|
2024-01-07 08:07:13 +00:00
|
|
|
=== "Overlay Text Template Variables"
|
|
|
|
|
2023-12-31 16:45:00 +00:00
|
|
|
{%
|
2024-01-07 08:07:13 +00:00
|
|
|
include-markdown "../overlay_text_variables.md"
|
2023-12-31 16:45:00 +00:00
|
|
|
%}
|
2024-01-07 08:07:13 +00:00
|
|
|
|
|
|
|
???+ example "Example Template Variable Amendments"
|
2023-12-31 16:45:00 +00:00
|
|
|
|
|
|
|
The below is an example config.yml extract with some Template Variables added in to change how the file works.
|
2024-01-07 08:07:13 +00:00
|
|
|
|
2023-12-31 16:45:00 +00:00
|
|
|
```yaml
|
|
|
|
libraries:
|
|
|
|
TV Shows:
|
|
|
|
overlay_files:
|
|
|
|
- pmm: runtimes
|
|
|
|
template_variables:
|
|
|
|
builder_level: episode
|
|
|
|
font: fonts/Inter-Bold.ttf
|
|
|
|
```
|