diff --git a/PMM/overlays/resolution.yml b/PMM/overlays/resolution.yml index e3940b1..44034cb 100644 --- a/PMM/overlays/resolution.yml +++ b/PMM/overlays/resolution.yml @@ -56,30 +56,17 @@ templates: allowed_library_types: - <>>> - <>>> - overlay: - name: <> - git: PMM/overlays/images/<> - group: res - weight: <> - horizontal_offset: <> - horizontal_align: <> - vertical_offset: <> - vertical_align: <> - NoResolution: - optional: - - overlay_level - - use_<> - - use_<> - default: - overlay: <> - horizontal_offset: 15 - horizontal_align: left - vertical_offset: 15 - vertical_align: top - collection_level: <> - allowed_library_types: - - <>>> - - <>>> + suppress_overlays: + - Directors-Cut + - Extended-Edition + - Uncut-Edition + - Unrated-Edition + - Special-Edition + - Final-Cut + - IMAX-E + - IMAX + - Remastered + - Criterion overlay: name: <> git: PMM/overlays/images/<> diff --git a/PMM/overlays/special_release.yml b/PMM/overlays/special_release.yml index 0faadef..0a3f2f8 100644 --- a/PMM/overlays/special_release.yml +++ b/PMM/overlays/special_release.yml @@ -44,23 +44,25 @@ ############################################################# templates: - SpecialRelease: + Edition: optional: - overlay_level - use_<> default: overlay: <> + extra: '-Box' horizontal_offset: 15 horizontal_align: left - vertical_offset: 99 + vertical_offset: 15 vertical_align: top + group: SpecialReleaseGroup collection_level: <> allowed_library_types: <>>> ignore_blank_results: true overlay: - name: <> - git: PMM/overlays/images/<> - group: special + name: <><> + git: PMM/overlays/images/<><> + group: <> weight: <> horizontal_offset: <> horizontal_align: <> @@ -68,96 +70,282 @@ templates: vertical_align: <> overlays: - Directors-Cut: template: - - name: SpecialRelease - weight: 90 + - name: Edition + weight: 100 + slug: directorscut + overlay: Directors-Cut + suppress_overlays: + - Directors-Cut-Dovetail + plex_all: true + filters: + filepath.regex: + - 'edition-(?i)\b(Director|Directors)\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)\b(Director|Directors)\b' # Original TRaSH naming + + Directors-Cut-Dovetail: + template: + - name: Edition + weight: 100 slug: directorscut + extra: '' + vertical_offset: 99 + group: Dovetail + overlay: Directors-Cut plex_all: true filters: - filepath.regex: '(?<=[0-9]{4}[)}>\]]\s)\bDirector|Directors\b' + filepath.regex: + - 'edition-(?i)\b(Director|Directors)\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)\b(Director|Directors)\b' # Original TRaSH naming Extended-Edition: template: - - name: SpecialRelease - weight: 80 + - name: Edition + weight: 90 slug: extended + overlay: Extended-Edition + suppress_overlays: + - Extended-Edition-Dovetail plex_all: true filters: - filepath.regex: '(?<=[0-9]{4}[)}>\]]\s)\bExtended\b' + filepath.regex: + - 'edition-(?i)\bExtended\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)\bExtended\b' # Original TRaSH naming + + Extended-Edition-Dovetail: + template: + - name: Edition + weight: 90 + slug: extended + extra: '' + vertical_offset: 99 + group: Dovetail + overlay: Extended-Edition + plex_all: true + filters: + filepath.regex: + - 'edition-(?i)\bExtended\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)\bExtended\b' # Original TRaSH naming Uncut-Edition: template: - - name: SpecialRelease - weight: 70 + - name: Edition + weight: 80 + slug: uncut + overlay: Uncut-Edition + suppress_overlays: + - Uncut-Edition-Dovetail + plex_all: true + filters: + filepath.regex: + - 'edition-(?i)\bUncut\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)\bUncut\b' # Original TRaSH naming + + Uncut-Edition-Dovetail: + template: + - name: Edition + weight: 80 slug: uncut + extra: '' + vertical_offset: 99 + group: Dovetail + overlay: Uncut-Edition plex_all: true filters: - filepath.regex: '(?<=[0-9]{4}[)}>\]]\s)\bUncut\b' + filepath.regex: + - 'edition-(?i)\bUncut\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)\bUncut\b' # Original TRaSH naming Unrated-Edition: template: - - name: SpecialRelease - weight: 60 + - name: Edition + weight: 70 + slug: unrated + overlay: Unrated-Edition + suppress_overlays: + - Unrated-Edition-Dovetail + plex_all: true + filters: + filepath.regex: + - 'edition-(?i)\bUnrated\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)\bUnrated\b' # Original TRaSH naming + + Unrated-Edition-Dovetail: + template: + - name: Edition + weight: 70 slug: unrated + extra: '' + vertical_offset: 99 + group: Dovetail + overlay: Unrated-Edition plex_all: true filters: - filepath.regex: '(?<=[0-9]{4}[)}>\]]\s)\bUnrated\b' + filepath.regex: + - 'edition-(?i)\bUnrated\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)\bUnrated\b' # Original TRaSH naming Special-Edition: template: - - name: SpecialRelease - weight: 50 + - name: Edition + weight: 60 slug: special + overlay: Special-Edition + suppress_overlays: + - Special-Edition-Dovetail + plex_all: true + filters: + filepath.regex: + - 'edition-(?i)\bSpecial\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)\bSpecial\b' # Original TRaSH naming + + Special-Edition-Dovetail: + template: + - name: Edition + weight: 60 + slug: special + extra: '' + vertical_offset: 99 + group: Dovetail + overlay: Special-Edition + plex_all: true + filters: + filepath.regex: + - 'edition-(?i)\bSpecial\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)\bSpecial\b' # Original TRaSH naming + + Final-Cut: + template: + - name: Edition + weight: 50 + slug: finalcut + overlay: Final-Cut + suppress_overlays: + - Final-Cut-Dovetail plex_all: true filters: - filepath.regex: '(?<=[0-9]{4}[)}>\]]\s)\bSpecial\b' + filepath.regex: + - 'edition-(?i)\bFinal\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)\bFinal\b' # Original TRaSH naming + + Final-Cut-Dovetail: + template: + - name: Edition + weight: 50 + slug: finalcut + extra: '' + vertical_offset: 99 + group: Dovetail + overlay: Final-Cut + plex_all: true + filters: + filepath.regex: + - 'edition-(?i)\bFinal\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)\bFinal\b' # Original TRaSH naming IMAX-E: template: - - name: SpecialRelease + - name: Edition weight: 40 slug: enhanced + overlay: IMAX-E + suppress_overlays: + - IMAX-E-Dovetail + plex_all: true + filters: + filepath.regex: '(?i)\bIMAX Enhanced\b|^(?=.*(DSNP|Disney\+|CORE(?=[ ._-]web[ ._-]?(dl|rip)\b)|\bBC(?=[ ._-]web[ ._-]?(dl|rip)\b)|IMAX[- .]Enhanced)\b)(?=.*\b(IMAX|IMAX[- .]Enhanced)\b).*' + + IMAX-E-Dovetail: + template: + - name: Edition + weight: 40 + slug: enhanced + extra: '' + vertical_offset: 99 + group: Dovetail + overlay: IMAX-E plex_all: true filters: filepath.regex: '(?i)\bIMAX Enhanced\b|^(?=.*(DSNP|Disney\+|CORE(?=[ ._-]web[ ._-]?(dl|rip)\b)|\bBC(?=[ ._-]web[ ._-]?(dl|rip)\b)|IMAX[- .]Enhanced)\b)(?=.*\b(IMAX|IMAX[- .]Enhanced)\b).*' IMAX: template: - - name: SpecialRelease + - name: Edition weight: 30 slug: imax + overlay: IMAX + suppress_overlays: + - IMAX-Dovetail plex_all: true filters: filepath.regex: '(?i)\bIMAX\b' - Criterion: + IMAX-Dovetail: template: - - name: SpecialRelease + - name: Edition + weight: 30 + slug: imax + extra: '' + vertical_offset: 99 + group: Dovetail + overlay: IMAX + plex_all: true + filters: + filepath.regex: '(?i)\bIMAX\b' + + Remastered: + template: + - name: Edition weight: 20 - slug: criterion + slug: remastered + overlay: Remastered + suppress_overlays: + - Remastered-Dovetail plex_all: true filters: - filepath.regex: - - '(?i)Criterion' - - '(?i)\[CC\]' + filepath.regex: + - 'edition-(?i)\b(Remaster|Remastered|4k Remaster|4k Remastered)\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)(?i)\b(Remaster|Remastered|4k Remaster|4k Remastered)\b' # Original TRaSH naming - Final-Cut: + Remastered-Dovetail: template: - - name: SpecialRelease - weight: 15 - slug: finalcut + - name: Edition + weight: 20 + slug: remastered + extra: '' + vertical_offset: 99 + group: Dovetail + overlay: Remastered plex_all: true filters: - filepath.regex: '(?<=[0-9]{4}[)}>\]]\s)\bFinal Cut\b' + - 'edition-(?i)\b(Remaster|Remastered|4k Remaster|4k Remastered)\b' # New TRaSH naming + - '(?<=[0-9]{4}[)}>\]]\s)(?i)\b(Remaster|Remastered|4k Remaster|4k Remastered)\b' # Original TRaSH naming - Remastered: + Criterion: template: - - name: SpecialRelease + - name: Edition weight: 10 - slug: remastered + slug: criterion + suppress_overlays: + - Criterion-Dovetail plex_all: true filters: - filepath.regex: '(?<=[0-9]{4}[)}>\]]\s)\bRemaster\b' + filepath.regex: + - '(?i)Criterion' + - '(?i)\[CC\]' + Criterion-Dovetail: + template: + - name: Edition + weight: 10 + slug: criterion + extra: '' + vertical_offset: 99 + group: Dovetail + overlay: Criterion + plex_all: true + filters: + filepath.regex: + - '(?i)Criterion' + - '(?i)\[CC\]' \ No newline at end of file