You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
297 lines
12 KiB
297 lines
12 KiB
1 year ago
|
---
|
||
|
search:
|
||
|
boost: 2
|
||
|
---
|
||
3 years ago
|
# Image Asset Directory Guide
|
||
|
|
||
|
The Image Asset Directories can be used to update the posters and backgrounds of collections, movies, shows, seasons, and episodes.
|
||
|
|
||
|
You can specify your asset folders under the `settings` attribute `asset_directory`:
|
||
|
|
||
1 year ago
|
|
||
|
???+ important
|
||
|
|
||
7 months ago
|
Assets can be stored anywhere on the host system that Kometa has visibility of (i.e. if using docker, the directory must be mounted/visible to the docker container).
|
||
1 year ago
|
|
||
7 months ago
|
For the sake of this document, we will assume that your assets folders are all based within the directory mapped to `config` within your Kometa environment.
|
||
1 year ago
|
|
||
3 years ago
|
```yaml
|
||
|
settings:
|
||
|
asset_directory: config/assets
|
||
|
```
|
||
|
|
||
|
To use multiple Image Asset Directories specify the directories as a YAML list:
|
||
|
|
||
|
```yaml
|
||
|
settings:
|
||
|
asset_directory:
|
||
|
- config/assets
|
||
|
- config/more_assets
|
||
|
- config/assets_ahoy
|
||
|
```
|
||
1 year ago
|
|
||
11 months ago
|
* You can specify an Image Asset Directory per Metadata/Playlist/Overlay File when calling the file. See [File Blocks](../../config/files.md) for how to define them.
|
||
1 year ago
|
|
||
3 years ago
|
* By default [if no `asset_directory` is specified], the program will look in the same folder as your `config.yml` for a folder called `assets`.
|
||
3 years ago
|
|
||
1 year ago
|
## Applying assets
|
||
3 years ago
|
|
||
1 year ago
|
Assets can be applied to collections [managed or unmanaged], playlists, and media items [movies, shows, seasons, and episodes].
|
||
3 years ago
|
|
||
7 months ago
|
Managed Collection and Playlist assets are applied whenever that collection/playlist is run. You do not have to specifically enable assets for these items; Kometa will always search for and apply them.
|
||
1 year ago
|
|
||
7 months ago
|
Item [movie/show/etc] assets and Unmanaged Collections assets have to be specifically enabled before Kometa will search for and apply them. Do this by enabling the `assets_for_all` Library Operation:
|
||
1 year ago
|
|
||
|
```yaml
|
||
|
Movies:
|
||
|
operations:
|
||
|
assets_for_all: true
|
||
|
```
|
||
3 years ago
|
|
||
11 months ago
|
* If you want to silence the `Asset Warning: No poster or background found in an assets folder for 'TITLE'` you can use the [`show_missing_assets` Setting Attribute](../../config/settings.md):
|
||
3 years ago
|
```yaml
|
||
|
settings:
|
||
|
show_missing_assets: false
|
||
|
```
|
||
|
|
||
1 year ago
|
## Asset interaction with overlays
|
||
|
|
||
|
If a media item has an asset associated with it, that asset image is taken as the source of truth for what artwork the item should have, and the overlay pipeline will no longer download and back up the base artwork from Plex. Using the Asset Directory to assign custom art is the simplest and safest way to ensure that the overlay pipeline doesn't unexpectedly overwrite your custom artwork in Plex.
|
||
|
|
||
3 years ago
|
## Asset Naming
|
||
|
|
||
7 months ago
|
The table below shows the asset folder path structures that will be searched for. There are two options for how Kometa looks at the files inside your Asset Directories. Choose an option with the [`asset_folders` Setting Attribute](../../config/settings.md). Note that `asset_folders` is a toggle; you can't put some images in folders and some not in a context where it is enabled.
|
||
3 years ago
|
|
||
7 months ago
|
Assets can be stored anywhere on the host system that Kometa has visibility of (i.e. if using docker, the directory must be mounted/visible to the docker container).
|
||
1 year ago
|
|
||
|
???+ important
|
||
|
|
||
7 months ago
|
The below table assumes that your assets are stored within the directory mapped to `config` in your Kometa environment.
|
||
1 year ago
|
|
||
|
| Image Type | Asset Folders Image Paths<br>`asset_folders: true` | Flat Assets Image Paths<br>`asset_folders: false` |
|
||
|
|:---------------------------------|:---------------------------------------------------------|:--------------------------------------------------------------|
|
||
|
| Collection/Movie/Show poster | `<path_to_assets>/ASSET_NAME/poster.ext` | `<path_to_assets>/ASSET_NAME.ext` |
|
||
|
| Collection/Movie/Show background | `<path_to_assets>/ASSET_NAME/background.ext` | `<path_to_assets>/ASSET_NAME_background.ext` |
|
||
|
| Season poster | `<path_to_assets>/ASSET_NAME/Season##.ext` | `<path_to_assets>/ASSET_NAME_Season##.ext` |
|
||
|
| Season background | `<path_to_assets>/ASSET_NAME/Season##_background.ext` | `<path_to_assets>/ASSET_NAME_Season##_background.ext` |
|
||
|
| Episode poster | `<path_to_assets>/ASSET_NAME/S##E##.ext` | `<path_to_assets>/ASSET_NAME_S##E##.ext` |
|
||
|
| Episode background | `<path_to_assets>/ASSET_NAME/S##E##_background.ext` | `<path_to_assets>/ASSET_NAME_S##E##_background.ext` |
|
||
3 years ago
|
|
||
2 years ago
|
* For **Collections** replace `ASSET_NAME` with the mapping name used with the collection unless `name_mapping` is specified, which you would then use what's specified in `name_mapping`.
|
||
3 years ago
|
|
||
1 year ago
|
For example:
|
||
|
```yaml
|
||
|
collections:
|
||
|
A24 Movies:
|
||
|
trakt_list: https://trakt.tv/users/moonilism/lists/a24
|
||
|
```
|
||
|
`ASSET_NAME` is "A24 Movies"
|
||
|
|
||
|
```yaml
|
||
|
/// < : ** : > \\\:
|
||
|
name_mapping: crazy-punctuation-collection
|
||
|
trakt_list: https://trakt.tv/users/moonilism/lists/a24
|
||
|
```
|
||
|
`ASSET_NAME` is "crazy-punctuation-collection"
|
||
|
|
||
3 years ago
|
* For **Movies** replace `ASSET_NAME` with the exact name of the folder the video file is stored in.
|
||
9 months ago
|
|
||
|
That means the folder name exactly as it appears in the file system.
|
||
|
```
|
||
|
/path/to/media/movies/THE NAME OF THE FOLDER HOWEVER LONG IT IS AND WHATEVER IT CONTAINS/MOVIE_NAME.mp4
|
||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- THIS IS ASSET_NAME
|
||
|
```
|
||
|
|
||
1 year ago
|
For example, given this movie:
|
||
|
```
|
||
9 months ago
|
/path/to/media/movies/Star Wars (1977) {imdb-tt0076759} {tmdb-11}/Star Wars (1977) [1080p].mp4
|
||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- THIS IS ASSET_NAME
|
||
1 year ago
|
```
|
||
7 months ago
|
The asset names that Kometa will look for are:
|
||
1 year ago
|
|
||
|
ASSET_FOLDERS=True:
|
||
|
```
|
||
9 months ago
|
config/assets/Star Wars (1977) {imdb-tt0076759} {tmdb-11}/poster.ext
|
||
|
config/assets/Star Wars (1977) {imdb-tt0076759} {tmdb-11}/background.ext
|
||
1 year ago
|
```
|
||
|
|
||
|
ASSET_FOLDERS=False:
|
||
|
```
|
||
9 months ago
|
config/assets/Star Wars (1977) {imdb-tt0076759} {tmdb-11}.ext
|
||
|
config/assets/Star Wars (1977) {imdb-tt0076759} {tmdb-11}_background.ext
|
||
1 year ago
|
```
|
||
|
|
||
3 years ago
|
* For **Shows**, **Seasons**, and **Episodes** replace `ASSET_NAME` with the exact name of the folder for the show as a whole.
|
||
1 year ago
|
|
||
9 months ago
|
That means the folder name exactly as it appears in the file system.
|
||
|
```
|
||
|
/path/to/media/tv/THE NAME OF THE FOLDER HOWEVER LONG IT IS AND WHATEVER IT CONTAINS/Season 01/EPISODE_FILE.mkv
|
||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- THIS IS ASSET_NAME
|
||
|
```
|
||
|
|
||
1 year ago
|
For example, given this show:
|
||
|
```
|
||
9 months ago
|
/path/to/media/tv/The Expanse (2015) {tvdb-280619}/Season 01/The Expanse (2015) - S01E01 - Dulcinea.mkv
|
||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- THIS IS ASSET_NAME
|
||
1 year ago
|
```
|
||
7 months ago
|
The asset names that Kometa will look for are:
|
||
1 year ago
|
|
||
|
ASSET_FOLDERS=True:
|
||
|
```
|
||
9 months ago
|
config/assets/The Expanse (2015) {tvdb-280619}/poster.ext
|
||
|
config/assets/The Expanse (2015) {tvdb-280619}/background.ext
|
||
1 year ago
|
```
|
||
|
|
||
|
ASSET_FOLDERS=False:
|
||
|
```
|
||
9 months ago
|
config/assets/The Expanse (2015) {tvdb-280619}.ext
|
||
|
config/assets/The Expanse (2015) {tvdb-280619}_background.ext
|
||
1 year ago
|
```
|
||
|
|
||
3 years ago
|
* For **Seasons** replace `##` with the zero padded season number (00 for specials)
|
||
|
|
||
1 year ago
|
For example, given this show:
|
||
|
```
|
||
9 months ago
|
/path/to/media/tv/The Expanse (2015) {tvdb-280619}/Season 01/The Expanse (2015) - S01E01 - Dulcinea.mkv
|
||
1 year ago
|
```
|
||
|
|
||
7 months ago
|
The asset names that Kometa will look for are:
|
||
1 year ago
|
|
||
|
ASSET_FOLDERS=True:
|
||
|
```
|
||
9 months ago
|
config/assets/The Expanse (2015) {tvdb-280619}/Season01.ext
|
||
|
config/assets/The Expanse (2015) {tvdb-280619}/Season01_background.ext
|
||
1 year ago
|
```
|
||
|
|
||
|
ASSET_FOLDERS=False:
|
||
|
```
|
||
9 months ago
|
config/assets/The Expanse (2015) {tvdb-280619}_Season01.ext
|
||
|
config/assets/The Expanse (2015) {tvdb-280619}_Season01_background.ext
|
||
1 year ago
|
```
|
||
|
|
||
3 years ago
|
* For **Episodes** replacing the first `##` with the zero padded season number (00 for specials), the second `##` with the zero padded episode number
|
||
|
|
||
1 year ago
|
For example, given this show:
|
||
|
```
|
||
9 months ago
|
/path/to/media/tv/The Expanse (2015) {tvdb-280619}/Season 01/The Expanse (2015) - S01E01 - Dulcinea.mkv
|
||
1 year ago
|
```
|
||
|
|
||
7 months ago
|
The asset names that Kometa will look for are:
|
||
1 year ago
|
|
||
|
ASSET_FOLDERS=True:
|
||
|
```
|
||
9 months ago
|
config/assets/The Expanse (2015) {tvdb-280619}/S01E01.ext
|
||
|
config/assets/The Expanse (2015) {tvdb-280619}/S01E01_background.ext
|
||
1 year ago
|
```
|
||
|
|
||
|
ASSET_FOLDERS=False:
|
||
|
```
|
||
9 months ago
|
config/assets/The Expanse (2015) {tvdb-280619}_S01E01.ext
|
||
|
config/assets/The Expanse (2015) {tvdb-280619}_S01E01_background.ext
|
||
1 year ago
|
```
|
||
|
|
||
3 years ago
|
* Replace `.ext` with the image extension
|
||
|
|
||
3 years ago
|
* When `asset_folders` is set to `true` movie/show folders can be nested inside other folders, but you must specify how deep you want to search because the more levels to search the longer it takes.
|
||
1 year ago
|
|
||
11 months ago
|
* You can specify how deep you want to scan by using the [`asset_depth` Setting Attribute](../../config/settings.md).
|
||
3 years ago
|
|
||
|
Here's an example config folder structure with an assets directory with `asset_folders` set to true and false.
|
||
|
|
||
2 years ago
|
### Asset Folders `asset_folders: true`
|
||
3 years ago
|
|
||
|
```
|
||
|
config
|
||
|
├── config.yml
|
||
|
├── Movies.yml
|
||
|
├── TV Shows.yml
|
||
11 months ago
|
└── assets
|
||
|
├── The Lord of the Rings
|
||
|
│ ├── poster.png
|
||
|
│ └── background.png
|
||
|
├── The Lord of the Rings The Fellowship of the Ring (2001)
|
||
|
│ ├── poster.png
|
||
|
│ └── background.png
|
||
|
├── The Lord of the Rings The Two Towers (2002)
|
||
|
│ ├── poster.png
|
||
|
│ └── background.png
|
||
|
├── The Lord of the Rings The Return of the King (2003)
|
||
|
│ ├── poster.png
|
||
|
│ └── background.png
|
||
|
├── Star Wars (Animated)
|
||
|
│ ├── poster.png
|
||
|
│ └── background.png
|
||
|
├── Star Wars The Clone Wars
|
||
|
│ ├── poster.png
|
||
|
│ ├── background.png
|
||
|
│ ├── Season00.png
|
||
|
│ ├── Season01.png
|
||
|
│ ├── Season02.png
|
||
|
│ ├── Season03.png
|
||
|
│ ├── Season04.png
|
||
|
│ ├── Season05.png
|
||
|
│ ├── Season06.png
|
||
|
│ ├── Season07.png
|
||
|
│ ├── S07E01.png
|
||
|
│ ├── S07E02.png
|
||
|
│ ├── S07E03.png
|
||
|
│ ├── S07E04.png
|
||
|
│ └── S07E05.png
|
||
|
└── Star Wars Rebels
|
||
|
├── poster.png
|
||
|
├── background.png
|
||
|
├── Season01.png
|
||
|
├── Season01_background.png
|
||
|
├── Season02.png
|
||
|
├── Season02_background.png
|
||
|
├── Season03.png
|
||
|
├── Season03_background.png
|
||
|
├── Season04.png
|
||
|
└── Season04_background.png
|
||
3 years ago
|
```
|
||
|
|
||
2 years ago
|
### Flat Assets `asset_folders: false`
|
||
3 years ago
|
|
||
|
```
|
||
|
config
|
||
|
├── config.yml
|
||
|
├── Movies.yml
|
||
|
├── TV Shows.yml
|
||
11 months ago
|
└── assets
|
||
|
├── The Lord of the Rings.png
|
||
|
├── The Lord of the Rings_background.png
|
||
|
├── The Lord of the Rings The Fellowship of the Ring (2001).png
|
||
|
├── The Lord of the Rings The Fellowship of the Ring (2001)_background.png
|
||
|
├── The Lord of the Rings The Two Towers (2002).png
|
||
|
├── The Lord of the Rings The Two Towers (2002)_background.png
|
||
|
├── The Lord of the Rings The Return of the King (2003).png
|
||
|
├── The Lord of the Rings The Return of the King (2003)_background.png
|
||
|
├── Star Wars (Animated).png
|
||
|
├── Star Wars (Animated)_background.png
|
||
|
├── Star Wars The Clone Wars.png
|
||
|
├── Star Wars The Clone Wars_background.png
|
||
|
├── Star Wars The Clone Wars_Season00.png
|
||
|
├── Star Wars The Clone Wars_Season01.png
|
||
|
├── Star Wars The Clone Wars_Season02.png
|
||
|
├── Star Wars The Clone Wars_Season03.png
|
||
|
├── Star Wars The Clone Wars_Season04.png
|
||
|
├── Star Wars The Clone Wars_Season05.png
|
||
|
├── Star Wars The Clone Wars_Season06.png
|
||
|
├── Star Wars The Clone Wars_Season07.png
|
||
|
├── Star Wars The Clone Wars_S07E01.png
|
||
|
├── Star Wars The Clone Wars_S07E02.png
|
||
|
├── Star Wars The Clone Wars_S07E03.png
|
||
|
├── Star Wars The Clone Wars_S07E04.png
|
||
|
├── Star Wars The Clone Wars_S07E05.png
|
||
|
├── Star Wars Rebels.png
|
||
|
├── Star Wars Rebels_background.png
|
||
|
├── Star Wars Rebels_Season01.png
|
||
|
├── Star Wars Rebels_Season01_background.png
|
||
|
├── Star Wars Rebels_Season02.png
|
||
|
├── Star Wars Rebels_Season02_background.png
|
||
|
├── Star Wars Rebels_Season03.png
|
||
|
├── Star Wars Rebels_Season03_background.png
|
||
|
├── Star Wars Rebels_Season04.png
|
||
|
└── Star Wars Rebels_Season04_background.png
|
||
3 years ago
|
```
|