i need to rename my movie and i cant figure out how to do what i want ...
my renaming is this
Code: Select all
F:/Films En Francais/{collection}/{n.upperInitial().replaceAll(/[:?]+/)} ({y}) [{fn.match(/3D/)+'3D'}{fn =~ /H-SBS/ ? '3D' : ''}{fn =~ /TB/ ? '3D' : ''} {sdhd} {vf}, {vc}, {ac}, {af}] {(any{audios.language}{fn.space('.').upper().matchAll(/(?<=\bTRUE?|\b)FR(?=ENCH\b|\b)|\bEN(?=GLISH\b|\b)|\bSPA(?=NISH\b|\b)|\bVF(?=I\b|F\b|\b)/, 0)}{[]}).flatten()*.upper().flatten()*.replaceAll('VF', 'FR').unique() ?: null} {fn =~ /VFQ/ ? '[VFQ]' : ''} {fn =~ /H-SBS/ ? '.H-SBS' : ''}{fn =~ /TB/ ? '.TB' : ''}
but now i need to had something
i need to had that IF the {certification} is PG that it create a rep PG, before the collection
but i don't understand how to make the {certification} use just the PG
Code: Select all
F:/Films En Francais/{certification}/{collection}/{n.upperInitial().replaceAll(/[:?]+/)} ({y}) [{fn.match(/3D/)+'3D'}{fn =~ /H-SBS/ ? '3D' : ''}{fn =~ /TB/ ? '3D' : ''} {sdhd} {vf}, {vc}, {ac}, {af}] {(any{audios.language}{fn.space('.').upper().matchAll(/(?<=\bTRUE?|\b)FR(?=ENCH\b|\b)|\bEN(?=GLISH\b|\b)|\bSPA(?=NISH\b|\b)|\bVF(?=I\b|F\b|\b)/, 0)}{[]}).flatten()*.upper().flatten()*.replaceAll('VF', 'FR').unique() ?: null} {fn =~ /VFQ/ ? '[VFQ]' : ''} {fn =~ /H-SBS/ ? '.H-SBS' : ''}{fn =~ /TB/ ? '.TB' : ''}
.... En Francais/{certification}/{collection}/.....
anyone can help me please ???