I have the code below:
Code: Select all
{n} - ({d}) {s00e00} - {t.replace(':','-').replaceAll(/[\/:*?"<>|]/,' - ')} {vf} {"${self.source ?: 'NA'}"} {ac} {af.replaceAll(/2ch/, "2ch").replaceAll(/6ch/, "5.1ch")} {vc}{"_${self.group ?: 'NA'}"}
So that's what I have so far.
But I've came across a slight problem. I know the file was encoded by 'Ehhhh' but the group binding does not have that info.
What I was after was if it does have the binding group then write that (Which is what I have) but if it doesn't then look in the title for it and write it or ELSE IF write '_NA' (Which is what I have also).
See screenshot for a visual idea what i mean.
Thanks.
EDIT: I've learned this
Code: Select all
{"_"+fn.after(/[_]/)}
How I incorporate that into:
Code: Select all
{"_${self.group ?: 'NA'}"}