implement conditionals

pull/428/head^2
c k 2 years ago
parent b496148316
commit e2810e6991

@ -1,47 +1,65 @@
templates: templates:
ol_builder: ol_builder:
ignore_blank_results: true
optional: optional:
- overlay_level - overlay_level
collection_level: <<overlay_level>> collection_level: <<overlay_level>>
conditionals:
ol_folder:
default: _posters
conditions:
- overlay_level: episode
value: _titlecards
overlay: overlay:
name: <<ol_type>>_<<ol_overlay>>_<<ol_queue>>_<<ol_weight>> name: <<ol_overlay>>_<<ol_queue>>_<<ol_weight>>
file: overlays/<<ol_folder>>/<<ol_file>>.png file: overlays/<<ol_folder>>/<<ol_file>>.png
queue: <<ol_queue>> queue: <<ol_queue>>
weight: <<ol_weight>> weight: <<ol_weight>>
it_items: it_items:
ignore_blank_results: true
optional: optional:
- it_language - it_language
- it_uhd - it_uhd
- it_hdr - it_hdr
- it_queue - it_pos
default: conditionals:
it_default: "bottom, up_corners, down_corners, left_side, right_side, sides" # list of comma separated labels used to change overlay positions, call as null when using one of those labels with it_queue it_pos_filter: # labels used to change overlay positions
default: "Bottom, Up_corners, Down_corners, Left_side, Right_side, Sides"
conditions:
- it_pos: Bottom
value: "Up_corners, Down_corners, Left_side, Right_side, Sides"
- it_pos: Up_corners
value: "Bottom, Down_corners, Left_side, Right_side, Sides"
- it_pos: Down_corners
value: "Bottom, Up_corners, Left_side, Right_side, Sides"
- it_pos: Left_side
value: "Bottom, Up_corners, Down_corners, Right_side, Sides"
- it_pos: Right_side
value: "Bottom, Up_corners, Down_corners, Left_side, Sides"
- it_pos: Sides
value: "Bottom, Up_corners, Down_corners, Left_side, Right_side"
plex_search: plex_search:
all: all:
audio_language: <<it_language>> audio_language: <<it_language>>
resolution: <<it_uhd>> resolution: <<it_uhd>>
hdr: <<it_hdr>> hdr: <<it_hdr>>
label: <<it_queue>> label: <<it_pos>>
label.not: <<it_default>> label.not: <<it_pos_filter>>
lbxd_list: lbxd_list:
ignore_blank_results: true
optional: optional:
- lbxd_order - lbxd_order
- lbxd_smart - lbxd_smart
default: default:
lbxd_user: cpt_kuesel lbxd_user: cpt_kuesel
lbxd_sort: <<collection_name>> lbxd_sort: <<collection_name>>
letterboxd_list: https://letterboxd.com/<<lbxd_user>>/list/<<lbxd_list>>/ conditionals:
collection_order: <<lbxd_order>> lboxd_url:
smart_label: <<lbxd_smart>> default: https://letterboxd.com/<<lbxd_user>>/list/<<lbxd_list>>/
sort_title: <<lbxd_sort>> conditions:
lbxd_wlist: - lboxd_list: watchlist
optional: value: https://letterboxd.com/<<lbxd_user>>/<<lbxd_list>>/
- lbxd_order letterboxd_list: <<lbxd_url>>
- lbxd_smart
default:
lbxd_user: cpt_kuesel
lbxd_sort: <<collection_name>>
letterboxd_list: https://letterboxd.com/<<lbxd_user>>/watchlist/
collection_order: <<lbxd_order>> collection_order: <<lbxd_order>>
smart_label: <<lbxd_smart>> smart_label: <<lbxd_smart>>
sort_title: <<lbxd_sort>> sort_title: <<lbxd_sort>>

@ -6,14 +6,17 @@ templates:
label_collector: true label_collector: true
allowed_library_types: <<label_collector>> allowed_library_types: <<label_collector>>
german_metadata: german_metadata:
ignore_blank_results: true
default: default:
german_metadata: true german_metadata: true
allowed_library_types: <<german_metadata>> allowed_library_types: <<german_metadata>>
non_german_metadata: non_german_metadata:
ignore_blank_results: true
default: default:
non_german_metadata: true non_german_metadata: true
allowed_library_types: <<non_german_metadata>> allowed_library_types: <<non_german_metadata>>
local_only: local_only:
ignore_blank_results: true
default: default:
local_only: false local_only: false
allowed_library_types: <<local_only>> allowed_library_types: <<local_only>>
@ -38,7 +41,7 @@ collections:
plex_search: plex_search:
all: all:
audio_language: de audio_language: de
label: non_german_metadata label: Non_german_metadata
item_label.remove: Non_german_metadata item_label.remove: Non_german_metadata
remove_german_metadata: remove_german_metadata:
template: {name: german_metadata} template: {name: german_metadata}
@ -46,7 +49,7 @@ collections:
plex_search: plex_search:
all: all:
audio_language.not: de audio_language.not: de
label: german_metadata label: German_metadata
item_label.remove: German_metadata item_label.remove: German_metadata
german_metadata: german_metadata:
template: {name: german_metadata} template: {name: german_metadata}
@ -54,28 +57,24 @@ collections:
plex_search: plex_search:
all: all:
audio_language: de audio_language: de
label.not: german_metadata label.not: German_metadata
item_metadata_language: de-DE item_metadata_language: de-DE
item_label: German_metadata item_label: German_metadata
item_label.remove: Non_german_metadata
non_german_metadata: non_german_metadata:
template: {name: non_german_metadata} template: {name: non_german_metadata}
build_collection: false build_collection: false
plex_search: plex_search:
all: all:
audio_language.not: de audio_language.not: de
label.not: non_german_metadata label.not: Non_german_metadata
item_metadata_language: en-US item_metadata_language: en-US
item_label: Non_german_metadata item_label: Non_german_metadata
item_label.remove: German_metadata
local_only: local_only:
template: template:
- name: local_only - name: local_only
- name: it_items plex_search:
it_default: local_only any:
it_resolution: 4k - resolution: 4k
- name: it_items - hdr: true
it_default: local_only
it_hdr: true
build_collection: false build_collection: false
item_label: Local_only item_label: Local_only

Loading…
Cancel
Save