Hi
let me explain
I have this format with file.path replace because I noticed I missed alot of directors cut tag because it was listed as DC in the file name and not folder name
full format
Code: Select all
D:/Movies/{genres.contains('Animation') ? 'Cartoons' : info.SpokenLanguages[0] ==~ /(no|da|sv|nb)/ ? 'Nordic Movies' : n.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)[0] =~ /^(?i)[0-9]/ ? '0-9' : n.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)[0] =~ /^(?i)[a-d]/ ? 'ABCD' : n.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)[0] =~ /^(?i)[e-h]/ ? 'EFGH' : n.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)[0] =~ /^(?i)[i-l]/ ? 'IJKL' : n.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)[0] =~ /^(?i)[m-p]/ ? 'MNOP' : n.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)[0] =~ /^(?i)[q-t]/ ? 'QRST' : n.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)[0] =~ /^(?i)[u-å]/ ? 'UVWYXZ' : '~'}/{collection.replaceFirst(/^(?i)(The)\s(.+)/,/$2, $1/).replaceAll(/[:|]/, ".").replaceAll(/[?]/, "!").replaceAll(/(?i)Collection/).trim()+' (Collection)/'}{info.SpokenLanguages[0] ==~ /(no|da|sv|nb)/ ? primaryTitle.upperInitial().replaceAll(/[:|]/, ".").replaceAll(/[?]/, "!") : n.replaceFirst(/^(?i)(The)\s(.+)/,/$2, $1/).replaceAll(/[:|]/, ".").replaceAll(/[?]/, "!")} ({y}){' ['+file.path.replaceAll(/(?i)theatrical/, '$0 Cut').replaceAll(/(?i)director's.cut|.dc/, 'Directors cut').matchAll(/extended|uncensored|remastered|ultimate.cut|unrated|uncut|Theatrical.Cut|imax|final.cut|Theatrical.edition|3d|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().unique().join('] [').replaceAll(/[._´]/," ") + ']'}/{info.SpokenLanguages[0] ==~ /(no|da|sv|nb)/ ? primaryTitle.upperInitial().replaceAll(/[:|]/, ".").replaceAll(/[?]/, "!") : n.replaceAll(/[:|]/, ".").replaceAll(/[?]/, "!")} ({y}){' ['+file.path.replaceAll(/(?i)theatrical/, '$0 Cut').replaceAll(/(?i)director's.cut|.dc/, 'Directors cut').matchAll(/extended|uncensored|remastered|ultimate.cut|unrated|uncut|Theatrical.Cut|imax|final.cut|Theatrical.edition|3d|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().unique().join('] [').replaceAll(/[._´]/," ") + ']'}{' '+[c{source} ?: 'BDrip']}{"."+lang}
Replace part
Code: Select all
{' ['+file.path.replaceAll(/(?i)theatrical/, '$0 Cut').replaceAll(/(?i)director's.cut|.dc/, 'Directors cut').matchAll(/extended|uncensored|remastered|ultimate.cut|unrated|uncut|Theatrical.Cut|imax|final.cut|Theatrical.edition|3d|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().unique().join('] [').replaceAll(/[._´]/," ") + ']'}
and it works for the most part exept that it adds Directors Cut to DC Showcase. Like so DC showcase Catwoman Directors Cut