And now I use:
Code: Select all
seriesFormat={path/s3/{n.replaceTrailingBrackets().colon(" -").slash(" - ").upperInitial().replaceAll(/^The (.*)$/, '$1, The')}/{s}{e.pad(2)}. {t} ({airdate})
Code: Select all
{n.replaceTrailingBrackets().colon(" -").slash(" - ").upperInitial().replaceAll(/^The (.*)$/, '$1, The')}
Code: Select all
{s}{e.pad(2)}. {t} ({airdate})
Code: Select all
seriesFormat=path/s3/N/F
Code: Select all
if in /path/first/ exists folder N
then seriesFormat should be "path/first/N/F"
else if in /path/second/ exists folder N
then seriesFormat should be "path/second/N/F"
else
seriesFormat will be as usual "path/third/N"