Merge pull request #468 from bullmoose20/master

rename and use templates better
pull/469/head
meisnate12 2 years ago committed by GitHub
commit 53d0ae77a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,14 +1,14 @@
############################################################# #############################################################
# Age Overlay # # Commonsense Overlay #
# Created by Yozora, Bullmoose20, & Sohjiro # # Created by Yozora, Bullmoose20, & Sohjiro #
# Credit to Magic815 for base images # # Credit to Magic815 for base images #
############################################################# #############################################################
# # # #
# Call this from your config.yml (Movie or Show): # # Call this from your config.yml (Movie or Show): #
# If nothing is specified these are the defaults # # If nothing is specified these are the defaults #
# # # #
# overlay_path: # # overlay_path: #
# - git: PMM/overlays/age # # - git: PMM/overlays/commonsense #
# template_variables: # # template_variables: #
# # Set text you want before the rating # # # Set text you want before the rating #
# pre_text: "" # # pre_text: "" #
@ -57,8 +57,6 @@ templates:
conditions: conditions:
- overlay_name: NR - overlay_name: NR
value: "" value: ""
optional: optional:
- overlay_level - overlay_level
- use_<<slug>> - use_<<slug>>
@ -95,137 +93,86 @@ templates:
git: PMM/overlays/images/raw/commonsense git: PMM/overlays/images/raw/commonsense
addon_position: left addon_position: left
addon_offset: 15 addon_offset: 15
plex_search:
validate: false
any:
content_rating: <<rating>>
overlays: overlays:
1: 1:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "1, 0, 01, 00, G, TV-G, TV-Y"
validate: false
any:
# content_rating.regex: '(?i)\b1\b|\b0\b|\bG\b|\bTV-Y\b|\bTV-G\b'
content_rating: 1, 0, G, TV-G, TV-Y
2: 2:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "2, 02"
any:
content_rating: 2
3: 3:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "3, 03"
any:
content_rating: 3
4: 4:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "4, 04"
any:
content_rating: 4
5: 5:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "5, 05"
any:
content_rating: 5
6: 6:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "6, 06, GP, PG, M/PG, TV-PG"
validate: false
any:
# content_rating.regex: '(?i)\b6\b|\bGP\b|\bPG\b|\bM\/PG\b|\bTV-PG\b'
content_rating: 6, GP, PG, M/PG, TV-PG
7: 7:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "7, 07, TV-Y7, TV-Y7-FV"
validate: false
any:
# content_rating.regex: '(?i)\b7\b|\bTV-Y7\b|\bTV-Y7-FV\b'
content_rating: 7, TV-Y7, TV-Y7-FV
8: 8:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "8, 08"
any:
content_rating: 8
9: 9:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "9, 09"
any:
content_rating: 9
10: 10:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "10"
any:
content_rating: 10
11: 11:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "11"
any:
content_rating: 11
12: 12:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "12"
any:
content_rating: 12
13: 13:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "13, PG-13"
validate: false
any:
# content_rating.regex: '(?i)\b13\b|\bPG-13\b'
content_rating: 13, PG-13
14: 14:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "14, TV-14"
validate: false
any:
# content_rating.regex: '(?i)\b14\b|\bTV-14\b'
content_rating: 14, TV-14
15: 15:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "15"
any:
content_rating: 15
16: 16:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "16, Passed, Approved, Open"
validate: false
any:
# content_rating.regex: '(?i)\b16\b|\bPassed\b|\bApproved\b|\bOpen\b'
content_rating: 16, Passed, Approved, Open
17: 17:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "17"
any:
content_rating: 17
18: 18:
template: template:
- name: Content-Rating - name: Content-Rating
plex_search: rating: "18, NC-17, M, TV-MA, R, X"
validate: false
any:
# content_rating.regex: '(?i)\b18\b|\bNC-17\b|\bM\b|\bTV-MA\b|\bR\b|\bX\b'
content_rating: 18, NC-17, M, TV-MA, R, X
NR: NR:
template: template:
- name: Content-Rating - name: Content-Rating
slug: nr slug: nr
plex_search: rating: "None, NR, Not Rated, Unrated"
validate: false
any:
# content_rating.regex: '(?i)\bNone\b|\bNR\b|\bNot Rated\b|\bUnrated\b'
content_rating: None, NR, Not Rated, Unrated
Loading…
Cancel
Save