Conditional titles using {localize} based on unique audio tracks
Posted: 10 Jan 2025, 14:32
Hi everyone,
I'm working with a mixed-language movie collection and want to implement smart title localization. Current format:
What I want to achieve:
- For movies with only German audio: Use German title
- For movies with multiple audio tracks: Use English title
I know I can use the {localize} binding for German titles, but I'm not sure how to combine this with a check of unique {audioLanguages} to make it conditional. Can you help me modify my format to implement this logic?
Currently getting:
[deu]/[DE] → Should use German title
anything else → Should keep English title
Thanks for any help with this!
I'm working with a mixed-language movie collection and want to implement smart title localization. Current format:
Code: Select all
{collection + '/'}{plex.name} - {audioLanguages.ISO2.joining(', ', '[', ']').upper()} {allOf{vf}{vc}{hdr.replace("Dolby Vision":"DV")}.joining(' ', ' [', ']')}/{plex.name} - {audioLanguages.ISO2.joining(', ', '[', ']').upper()} {allOf{vf}{vc}{hdr.replace("Dolby Vision":"DV")}.joining(' ', ' [', ']')}
- For movies with only German audio: Use German title
- For movies with multiple audio tracks: Use English title
I know I can use the {localize} binding for German titles, but I'm not sure how to combine this with a check of unique {audioLanguages} to make it conditional. Can you help me modify my format to implement this logic?
Currently getting:
[deu]/[DE] → Should use German title
anything else → Should keep English title
Thanks for any help with this!