mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2025-02-16 22:08:25 +00:00
[58] update resolution overlay
This commit is contained in:
parent
4bf40d0284
commit
ec5248963c
5 changed files with 68 additions and 63 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
1.17.3-develop57
|
1.17.3-develop58
|
||||||
|
|
|
@ -63,10 +63,30 @@ templates:
|
||||||
conditions:
|
conditions:
|
||||||
- dovetail: true
|
- dovetail: true
|
||||||
value: 99
|
value: 99
|
||||||
dovetail_overlay:
|
suppress_overlays:
|
||||||
conditions:
|
conditions:
|
||||||
|
- dovetail: true
|
||||||
|
value:
|
||||||
|
- 4K-DV
|
||||||
|
- 4K-HDR
|
||||||
|
- 4K
|
||||||
|
- 1080P-DV
|
||||||
|
- 1080P-HDR
|
||||||
|
- 1080P
|
||||||
|
- 720P-DV
|
||||||
|
- 720P-HDR
|
||||||
|
- 720P
|
||||||
|
- 576P-DV
|
||||||
|
- 576P-HDR
|
||||||
|
- 576P
|
||||||
|
- 480P-DV
|
||||||
|
- 480P-HDR
|
||||||
|
- 480P
|
||||||
|
- DV
|
||||||
|
- HDR
|
||||||
- dovetail: false
|
- dovetail: false
|
||||||
value: <<overlay_name>>-Dovetail
|
value:
|
||||||
|
- <<overlay_name>>-Dovetail
|
||||||
back_width:
|
back_width:
|
||||||
conditions:
|
conditions:
|
||||||
- dovetail: false
|
- dovetail: false
|
||||||
|
@ -89,25 +109,7 @@ templates:
|
||||||
collection_level: <<overlay_level>>
|
collection_level: <<overlay_level>>
|
||||||
allowed_library_types: <<use_<<slug>>>>
|
allowed_library_types: <<use_<<slug>>>>
|
||||||
ignore_blank_results: true
|
ignore_blank_results: true
|
||||||
suppress_overlays:
|
suppress_overlays: <<suppress_overlays>>
|
||||||
- 4K-DV
|
|
||||||
- 4K-HDR
|
|
||||||
- 4K
|
|
||||||
- 1080P-DV
|
|
||||||
- 1080P-HDR
|
|
||||||
- 1080P
|
|
||||||
- 720P-DV
|
|
||||||
- 720P-HDR
|
|
||||||
- 720P
|
|
||||||
- 576P-DV
|
|
||||||
- 576P-HDR
|
|
||||||
- 576P
|
|
||||||
- 480P-DV
|
|
||||||
- 480P-HDR
|
|
||||||
- 480P
|
|
||||||
- DV
|
|
||||||
- HDR
|
|
||||||
- <<dovetail_overlay>>
|
|
||||||
overlay:
|
overlay:
|
||||||
name: <<overlay_name>>
|
name: <<overlay_name>>
|
||||||
pmm: edition/<<slug>>
|
pmm: edition/<<slug>>
|
||||||
|
|
|
@ -37,10 +37,28 @@ templates:
|
||||||
conditions:
|
conditions:
|
||||||
- dovetail: true
|
- dovetail: true
|
||||||
value: 189
|
value: 189
|
||||||
dovetail_overlay:
|
suppress_overlays:
|
||||||
conditions:
|
conditions:
|
||||||
|
- dovetail: true
|
||||||
|
value:
|
||||||
|
- Directors-Cut
|
||||||
|
- Extended-Edition
|
||||||
|
- Uncut-Edition
|
||||||
|
- Unrated-Edition
|
||||||
|
- Special-Edition
|
||||||
|
- Final-Cut
|
||||||
|
- Anniversary-Edition
|
||||||
|
- Collectors-Edition
|
||||||
|
- International-Cut
|
||||||
|
- Theatrical-Cut
|
||||||
|
- Ultimate-Cut
|
||||||
|
- IMAX-E
|
||||||
|
- IMAX
|
||||||
|
- Remastered
|
||||||
|
- Criterion
|
||||||
- dovetail: false
|
- dovetail: false
|
||||||
value: <<overlay_name>>-Dovetail
|
value:
|
||||||
|
- <<overlay_name>>-Dovetail
|
||||||
optional:
|
optional:
|
||||||
- overlay_level
|
- overlay_level
|
||||||
- use_<<resolution>>
|
- use_<<resolution>>
|
||||||
|
@ -61,23 +79,7 @@ templates:
|
||||||
allowed_library_types:
|
allowed_library_types:
|
||||||
- <<use_<<resolution>>>>
|
- <<use_<<resolution>>>>
|
||||||
- <<use_<<alt>>>>
|
- <<use_<<alt>>>>
|
||||||
suppress_overlays:
|
suppress_overlays: <<suppress_overlays>>
|
||||||
- Directors-Cut
|
|
||||||
- Extended-Edition
|
|
||||||
- Uncut-Edition
|
|
||||||
- Unrated-Edition
|
|
||||||
- Special-Edition
|
|
||||||
- Final-Cut
|
|
||||||
- Anniversary-Edition
|
|
||||||
- Collectors-Edition
|
|
||||||
- International-Cut
|
|
||||||
- Theatrical-Cut
|
|
||||||
- Ultimate-Cut
|
|
||||||
- IMAX-E
|
|
||||||
- IMAX
|
|
||||||
- Remastered
|
|
||||||
- Criterion
|
|
||||||
- <<dovetail_overlay>>
|
|
||||||
overlay:
|
overlay:
|
||||||
name: <<overlay_name>>
|
name: <<overlay_name>>
|
||||||
pmm: resolution/<<resolution>><<alt>>
|
pmm: resolution/<<resolution>><<alt>>
|
||||||
|
|
|
@ -63,10 +63,30 @@ templates:
|
||||||
conditions:
|
conditions:
|
||||||
- dovetail: true
|
- dovetail: true
|
||||||
value: 99
|
value: 99
|
||||||
dovetail_overlay:
|
suppress_overlays:
|
||||||
conditions:
|
conditions:
|
||||||
|
- dovetail: true
|
||||||
|
value:
|
||||||
|
- 4K-DV
|
||||||
|
- 4K-HDR
|
||||||
|
- 4K
|
||||||
|
- 1080P-DV
|
||||||
|
- 1080P-HDR
|
||||||
|
- 1080P
|
||||||
|
- 720P-DV
|
||||||
|
- 720P-HDR
|
||||||
|
- 720P
|
||||||
|
- 576P-DV
|
||||||
|
- 576P-HDR
|
||||||
|
- 576P
|
||||||
|
- 480P-DV
|
||||||
|
- 480P-HDR
|
||||||
|
- 480P
|
||||||
|
- DV
|
||||||
|
- HDR
|
||||||
- dovetail: false
|
- dovetail: false
|
||||||
value: <<overlay_name>>-Dovetail
|
value:
|
||||||
|
- <<overlay_name>>-Dovetail
|
||||||
back_width:
|
back_width:
|
||||||
conditions:
|
conditions:
|
||||||
- dovetail: false
|
- dovetail: false
|
||||||
|
@ -89,25 +109,7 @@ templates:
|
||||||
collection_level: <<overlay_level>>
|
collection_level: <<overlay_level>>
|
||||||
allowed_library_types: <<use_<<slug>>>>
|
allowed_library_types: <<use_<<slug>>>>
|
||||||
ignore_blank_results: true
|
ignore_blank_results: true
|
||||||
suppress_overlays:
|
suppress_overlays: <<suppress_overlays>>
|
||||||
- 4K-DV
|
|
||||||
- 4K-HDR
|
|
||||||
- 4K
|
|
||||||
- 1080P-DV
|
|
||||||
- 1080P-HDR
|
|
||||||
- 1080P
|
|
||||||
- 720P-DV
|
|
||||||
- 720P-HDR
|
|
||||||
- 720P
|
|
||||||
- 576P-DV
|
|
||||||
- 576P-HDR
|
|
||||||
- 576P
|
|
||||||
- 480P-DV
|
|
||||||
- 480P-HDR
|
|
||||||
- 480P
|
|
||||||
- DV
|
|
||||||
- HDR
|
|
||||||
- <<dovetail_overlay>>
|
|
||||||
overlay:
|
overlay:
|
||||||
name: <<overlay_name>>
|
name: <<overlay_name>>
|
||||||
pmm: edition/<<slug>>
|
pmm: edition/<<slug>>
|
||||||
|
|
|
@ -230,7 +230,6 @@ class Overlay:
|
||||||
if not temp_path.endswith(".png"):
|
if not temp_path.endswith(".png"):
|
||||||
temp_path = f"{temp_path}.png"
|
temp_path = f"{temp_path}.png"
|
||||||
images_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "defaults", "overlays", "images")
|
images_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "defaults", "overlays", "images")
|
||||||
logger.debug(os.path.abspath(os.path.join(images_path, temp_path)))
|
|
||||||
if not os.path.exists(os.path.abspath(os.path.join(images_path, temp_path))):
|
if not os.path.exists(os.path.abspath(os.path.join(images_path, temp_path))):
|
||||||
raise Failed(f"Overlay Error: Overlay Image not found at: {os.path.abspath(os.path.join(images_path, temp_path))}")
|
raise Failed(f"Overlay Error: Overlay Image not found at: {os.path.abspath(os.path.join(images_path, temp_path))}")
|
||||||
self.path = os.path.abspath(os.path.join(images_path, temp_path))
|
self.path = os.path.abspath(os.path.join(images_path, temp_path))
|
||||||
|
|
Loading…
Add table
Reference in a new issue