

I have been over the forum but cant seem to find the right post
ofcourse this dosent work but it is as close as ive come and illustrates what I am trying to do
Code: Select all
{file.path =~ /danish movies/ ? '{primarytitle}' : '{n}'}
ztrust
Code: Select all
{file.path =~ /danish movies/ ? '{primarytitle}' : '{n}'}
Code: Select all
{file.path =~ /Danish Movies/ ? primaryTitle : n}
Code: Select all
{info.ProductionCountries.contains('Denmark') ? 'Danish Movies' : genres.contains('Animation') ? 'Cartoons' : n.sortName() =~ /^(?i)[0-9]/ ? '0-9' : n.sortName() =~ /^(?i)[a-d]/ ? 'ABCD' : n.sortName() =~ /^(?i)[e-h]/ ? 'EFGH' : n.sortName() =~ /^(?i)[i-l]/ ? 'IJKL' : n.sortName() =~ /^(?i)[m-p]/ ? 'MNOP' : n.sortName() =~ /^(?i)[q-t]/ ? 'QRST' : n.sortName() =~ /^(?i)[u-å]/ ? 'UVWYXZ' : '~'}/{file.path =~ /Danish Movies/ ? primaryTitle : n.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)}
Code: Select all
{file.path =~ /Danish Movies/ ? primaryTitle : n.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)}
Code: Select all
{'['+fn.replaceAll(/(?i)dc|director's/, 'Directors Cut').matchAll(/UNRATED|REMASTERED|EXTENDED|UNCUT|DIRECTORS.CUT|THEATRICAL.CUT/).join('][').upperInitial().lowerTrail()+']'}
Code: Select all
{'dc'.replaceAll(/(?i)(?<!^)dc|director's/, 'TEST')}
Code: Select all
{info.SpokenLanguages[0] ==~ /(no|da|sv|nb)/ ? 'Danish Movies' :genres.contains('Animation') ? 'Cartoons' : n.sortName() =~ /^(?i)[0-9]/ ? '0-9' : n.sortName() =~ /^(?i)[a-d]/ ? 'ABCD' : n.sortName() =~ /^(?i)[e-h]/ ? 'EFGH' : n.sortName() =~ /^(?i)[i-l]/ ? 'IJKL' : n.sortName() =~ /^(?i)[m-p]/ ? 'MNOP' : n.sortName() =~ /^(?i)[q-t]/ ? 'QRST' : n.sortName() =~ /^(?i)[u-å]/ ? 'UVWYXZ' : '~'}/{info.SpokenLanguages[0] ==~ /(sv|da|no)/ ? primaryTitle : n.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)}
Code: Select all
n.sortName() =~ /^(?i)[a-d]/ ? 'ABCD'
Code: Select all
{'the dark night'.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)[0]}
Code: Select all
{n} ({y}) {'['+file.path.replaceAll(/(?i)(?<!^).dc/, 'directors cut').matchAll(/UNRATED|REMASTERED|EXTENDED|UNCUT|DIRECTORS.CUT|THEATRICAL.CUT/).join('][').upperInitial().lowerTrail()+']'}
Code: Select all
{file.path}