1. If a file has a {edition-(whatever)} section, copy it.
2. Else, add such a section if there are relevant {tags}.
3. Do nothing.
So far, I've tried
Code: Select all
{fn.match(/ \{edition-.*\}/) ? fn.match(/ \{edition-.*\}/) : " {edition-${tags[0]}}"}
I've tried separating them out like this:
Code: Select all
{fn.match(/ \{edition-.*\}/) ? fn.match(/ \{edition-.*\}/)}
" {edition-${tags[0]}}"}
To explain further, this is so I can add custom editions that's not in {tags} and not have FileBot delete them.