This is my current code in Filebot.
Code: Select all
{folder}/{n.replaceAll(/[:|]/, " - ")} ({y})
[{def resolution = height; def formattedResolution = resolution < 720 ? 'SD' : resolution < 1080 ? 'HD' : resolution < 2160 ? 'Full-HD' : 'UHD'; return formattedResolution}
{def italianLanguagePresent = audio.any {it.LanguageString3?.toUpperCase() == 'ITA'}; def subtitleString = italianLanguagePresent ? '' : ' SUB'; subtitleString}]
/Season {s == 0 ? '00' : s.pad(2)}/
{n.replaceAll(/[:|]/, " - ")} ({y}) - {s00e00} - {t.replaceAll(/[:|]/, " - ").replaceAll(/[?|]/, "_").replaceAll(/["|]/, "'")}
[{vf + '.'}
{vs.replace('Bluray','BluRay').replace('Blu-ray','BluRay').replace('DVD-R','DVD') + '.'}
{fn.match(/Hybrid/) + '.'}
{fn.match(/REMUX/) + '.'}
{hdr + '.'}
{vcf.replace('MPEG Video','MPEG') + '.'}
{vc}
{'.' + ws}]
{ '[' + audio.groupBy{ a -> a.format.removeAll(/[^A-Z0-9]/) }.collect{ c, a -> a.LanguageString3*.upper().unique().join('.') + '.' + c }.join('.') + ']'}
{ '[' + 'SUB.' + textLanguages.ISO3*.upper().join('.') + ']' }
{ tags }
{[fn.match(/non censurato/)]}
{'.' + fn.match(/v2|v3|v4|v5|v6|v7/).upper()}
Q:\Air (2005) [Full-HD SUB]\Season 01\Air (2005) - S01E01 - Breeze [1080p.BluRay.AVC.x264.WS][JPN.FLAC][SUB.ITA].mkv
I would like to obtain the same result with the logic of {plex.year.id} so as to also have the unique ID after the year in the folder name.
Can you help me?
Thanks!