[75] Merge remote-tracking branch 'Yozora/nightly' into nightly

This commit is contained in:
meisnate12 2022-10-03 13:53:51 -04:00
commit bef04781cd
16 changed files with 402 additions and 12 deletions

View file

@ -0,0 +1,240 @@
#############################################################
# CommonSense Content Rating Collections #
# Created by Yozora, Bullmoose20, & Sohjiro #
#############################################################
# Call this from your config.yml (Movie or Show) #
# If nothing is specified these are the defaults #
# #
# metadata_path: #
# - git: PMM/content_rating_cs #
# template_variables: #
# # Turn the separator collection on/off #
# use_separator: true #
# # Separator style (red, blue, green, gray, #
# purple, stb, orig) #
# sep_style: orig #
# # Turn the other collection on/off #
# use_other: true #
# # Sets how the collection is sorted #
# sort_by: release.desc #
# # Sets the collection mode of the collection #
# collection_mode: #
# # Sets the value at the start of the sort title #
# collection_section: 14 #
# # Radarr Tag for existing items #
# item_radarr_tag: #
# # Sonarr Tag for existing items #
# item_sonarr_tag: #
#############################################################
external_templates:
pmm: templates
template_variables:
collection_section: 14
translations:
pmm: translations
collections:
Ratings Collections:
template:
- name: separator
separator: content_rating
dynamic_collections:
CommonSense Content Rating:
type: content_rating
other_name: Other Ratings
template:
- smart_filter
- translation
- shared
other_template:
- other_collection
- smart_filter
- translation
- shared
template_variables:
search_term:
default: content_rating
image:
default: content_rating/cs/<<key_name>>
other: content_rating/other
translation_key:
default: content_rating
other: content_rating_other
include:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- NR
title_override:
1: Age 1+
2: Age 2+
3: Age 3+
4: Age 4+
5: Age 5+
6: Age 6+
7: Age 7+
8: Age 8+
9: Age 9+
10: Age 10+
11: Age 11+
12: Age 12+
13: Age 13+
14: Age 14+
15: Age 15+
16: Age 16+
17: Age 17+
18: Age 18+
NR: Not Rated
addons:
1:
- gb/U
- gb/0+
- G
- TV-Y
- E
- gb/E
- 01
2:
- gb/U
- gb/0+
- G
- TV-Y
- E
- gb/E
- 02
3:
- gb/U
- gb/0+
- G
- TV-Y
- E
- gb/E
- TV-G
- 03
4:
- TV-G
- G
- 04
5:
- TV-G
- G
- 05
6:
- gb/PG
- TV-PG
- 06
7:
- gb/PG
- TV-PG
- TV-Y7
- TV-Y7-FV
- 07
8:
- gb/PG
- TV-PG
- TV-Y7
- TV-Y7-FV
- 08
9:
- gb/PG
- TV-PG
- TV-Y7
- TV-Y7-FV
- gb/9+
- 09
10:
- gb/PG
- TV-PG
- TV-Y7
- TV-Y7-FV
- gb/9+
11:
- gb/PG
- TV-PG
- TV-Y7
- TV-Y7-FV
- gb/9+
12:
- gb/12
- 12
- gb/12A
- 12+
- 12
13:
- gb/12
- 12
- gb/12A
- 12+
- PG-13
- 12
14:
- gb/12
- 12
- gb/12A
- 12+
- PG-13
- TV-14
- 12
15:
- gb/15
- gb/14+
- TV-14
- 13
- 14
- 15
16:
- gb/15
- gb/14+
- TV-14
- 13
- 14
- 15
17:
- gb/15
- gb/14+
- TV-14
- 13
- 14
- 15
18:
- gb/18
- MA-17
- TVMA
- TV-MA
- R
- 16
- 17
- 18
- gb/R18
- gb/X
- X
- NC-17
NR:
- Approved
- N/A
- NOT RATED
- Not Rated
- gb/NR
- Unrated
- gb/Not Rated
- gb/Rejected
- gb/Unrated
- None

View file

@ -81,29 +81,57 @@ dynamic_collections:
- TV-G
- E
- gb/E
- 1
- 2
- 3
- 4
- 01
- 02
- 03
- 04
PG:
- gb/PG
- gb/9+
- TV-PG
- TV-Y7
- TV-Y7-FV
- 5
- 6
- 7
- 8
- 9
- 05
- 06
- 07
- 08
- 09
- 10
- 11
12:
- gb/12
- 12
12A:
- gb/12A
- 12+
- PG-13
- TV-13
- 12
15:
- gb/15
- gb/14+
- TV-14
- 13
- 14
- 15
18:
- gb/18
- MA-17
- TVMA
- TV-MA
- R
- 16
- 17
- 18
R18:
- gb/R18
- gb/X

View file

@ -77,17 +77,43 @@ dynamic_collections:
- TV-G
- E
- gb/E
- 1
- 2
- 3
- 4
- 5
- 01
- 02
- 03
- 04
- 05
PG:
- gb/PG
- gb/9+
- TV-PG
- TV-Y7
- TV-Y7-FV
- 6
- 7
- 8
- 9
- 06
- 07
- 08
- 09
- 10
- 11
PG-13:
- gb/12A
- gb/12
- 12+
- TV-13
- 12
- 13
- 14
- 15
- 16
- 17
R:
- 18
- gb/18

View file

@ -74,12 +74,34 @@ dynamic_collections:
- gb/0+
- U
- G
- 1
- 2
- 3
- 4
- 5
- 6
- 01
- 02
- 03
- 04
- 05
- 06
TV-Y:
- TV-Y7
- TV-Y7-FV
- 7
- 8
- 9
- 07
- 08
- 09
TV-PG:
- gb/PG
- gb/9+
- 10
- 11
- 12
- 13
TV-14:
- gb/12A
- 12+
@ -87,6 +109,10 @@ dynamic_collections:
- TV-13
- gb/14+
- gb/15
- 14
- 15
- 16
- 17
TV-MA:
- 18
- gb/18

View file

@ -4,7 +4,7 @@ The `- pmm: actor` Metadata File is used to dynamically create collections based
Example Collections Created:
![](images/actor1.png)
![](../images/actor1.png)
The below YAML in your config.yml will create the collections:
```yaml
@ -17,7 +17,7 @@ libraries:
## Rainier Style
Below is a screenshot of the alternative `Rainier` style which can be set via template variables
![](images/actor2.png)
![](../images/actor2.png)
## Template Variables

View file

@ -4,7 +4,7 @@ The `- pmm: audio_language` Metadata File is used to dynamically create collecti
Example Collections Created:
![](images/audio_language.png)
![](../images/audio_language.png)
The below YAML in your config.yml will create the collections:
```yaml

View file

@ -0,0 +1,70 @@
# Common Sense Media Content Rating Default Metadata File
The `- pmm: content_rating_cs` Metadata File is used to dynamically create collections based on the content ratings available in your library.
If you do not use the UK-based rating system within Plex, this file will attempt to match the standard ratings (such as PG-13) to the respective UK rating system (such as 12)
Example Collections Created:
![](../images/content_rating_cs.png)
The below YAML in your config.yml will create the collections:
```yaml
libraries:
Movies:
metadata_path:
- pmm: content_rating_cs
```
## Template Variables
Template Variables can be used to manipulate the file from the default settings which are provided.
Note that the `templates_variables:` section only needs to be used if you do NOT want to use the default settings.
Below are the available variables which can be used to customize the file.
| Variable | Usage | Default Value | Values |
|:-------------------|:-----------------------------------------------------------------------------------------------------|----------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| sort_by | Controls the sort method for the collections | `release.desc` | Any sort method in the [Sorts Options Table](#sort-options) |
| collection_section | Controls the sort order of these collections against other default collections | `10` | Any number |
| collection_mode | Controls the collection mode of these collections | `default` | `default` - Library default<br/>`hide` - Hide Collection<br/>`hide_items`- Hide Items in this Collection<br/>`show_items` - Show this Collection and its Items |
| use_other | Controls whether an "Other" collection is created for any items not included in the initial criteria | `true` | `true` or `false` |
| use_separator | Controls whether a separator is created | `true` | `true` or `false` |
| sep_style | Sets the theme of the separator | `orig` | `orig`, `blue`, `gray`, `green`, `purple`, `red`, `stb` |
| item_radarr_tag | Radarr Tag for existing items | | list of tag(s) to be applied to existing items |
| item_sonarr_tag | Sonarr Tag for existing items | | list of tag(s) to be applied to existing items |
The below shows an example config.yml with all the template_variables set away from their defaults:
```yaml
libraries:
Movies:
metadata_path:
- pmm: content_rating_cs
template_variables:
sort_by: title.asc
collection_section: 21
collection_mode: show_items
use_other: false
use_separator: false
sep_style: blue
```
Dynamic Collections attributes can also be edited to tweak the setup of the collections. The YAML file which creates the `content_rating_cs` collections can be found [here](https://github.com/meisnate12/Plex-Meta-Manager/blob/defaults/defaults/both/content_rating_cs.yml)
An example of this is; to map the "de/18" content rating to "18", the following template variable can be used:
```yaml
libraries:
Movies:
metadata_path:
- pmm: content_rating_cs
template_variables:
addons:
"18":
- "de/18"
```
Further information on editing Dynamic Collections using template variables can be found [here](https://metamanager.wiki/en/latest/home/guides/defaults.html#customizing-configs)

View file

@ -6,7 +6,7 @@ If you do not use the UK-based rating system within Plex, this file will attempt
Example Collections Created:
![](images/content_rating_uk.png)
![](../images/content_rating_uk.png)
The below YAML in your config.yml will create the collections:
```yaml

View file

@ -6,7 +6,7 @@ This file also merges similarly named genres (such as "Sci-Fi", "SciFi" and "Sci
Example Collections Created:
![](images/genre.png)
![](../images/genre.png)
The below YAML in your config.yml will create the collections:
```yaml
@ -58,7 +58,7 @@ If you do not use the UK-based rating system within Plex, this file will attempt
Example Collections Created:
![](images/content_rating_uk.png)
![](../images/content_rating_uk.png)
The below YAML in your config.yml will create the collections:
```yaml

View file

@ -6,7 +6,7 @@ To avoid duplication, this file should not be used in combination with `- pmm: r
Example Collections Created:
![](images/resolution.png)
![](../images/resolution.png)
The below YAML in your config.yml will create the collections:
```yaml

View file

@ -8,7 +8,7 @@ To avoid duplication, this file should not be used in combination with `- pmm: r
Example Collections Created:
![](images/resolution_standards.png)
![](../images/resolution_standards.png)
The below YAML in your config.yml will create the collections:
```yaml

View file

@ -4,7 +4,7 @@ The `- pmm: streaming` Metadata File is used to dynamically create collections b
Example Collections Created:
![](images/streaming.png)
![](../images/streaming.png)
The below YAML in your config.yml will create the collections:
```yaml

View file

@ -6,7 +6,7 @@ This file also merges similarly named studios (such as "20th Century Fox" and "2
Example Collections Created:
![](images/studio.png)
![](../images/studio.png)
The below YAML in your config.yml will create the collections:
```yaml

View file

@ -4,7 +4,7 @@ The `- pmm: subtitle_language` Metadata File is used to dynamically create colle
Example Collections Created:
![](images/subtitle_language.png)
![](../images/subtitle_language.png)
The below YAML in your config.yml will create the collections:
```yaml

View file

@ -4,7 +4,7 @@ The `- pmm: year` Metadata File is used to dynamically create collections based
Example Collections Created:
![](images/year.png)
![](../images/year.png)
The below YAML in your config.yml will create the collections:
```yaml

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB