It could be a text file with a list of preset names and their respective format strings.
Code: Select all
[TV - Downloaded]
<format string>
[TV - Encoded]
<format string>
[Movies - Downloaded]
etc...

Code: Select all
[TV - Downloaded]
<format string>
[TV - Encoded]
<format string>
[Movies - Downloaded]
etc...
Code: Select all
Downloaded:
/tank/tv_x264/{n}/{"Season ${s.pad(2)}/"}{n.space('.').replaceAll(/[()]+/)}.{s00e00}.{t.space('.').replacePart('(Part.$1)').replaceAll(/[,]+/)}{'.'+fn.match(/(?i:internal)/).toUpperCase()}{'.'+fn.match(/(?i:proper)/).toUpperCase()}{'.'+fn.match(/(?i:repack)/).toUpperCase()}{'.'+vf.match(/720[pP]|1080[pP]/)}{'.'+source.replaceAll('(?i)BluRay', 'Blu-ray').replaceAll('(?i)WEB.DL', 'WEB-DL')}{'.'+fn.match(/Blu-ray/)}{'.'+ac.match(/DTS/)}{'.'+fn.match(/(?i:dd5.1)/).toUpperCase()}{'.'+fn.match(/(?i:aac2.0)/).toUpperCase()}{'.'+fn.match(/(?i:h.264)/).toUpperCase()}{'.'+fn.match(/(?i:h264)/).replaceAll('(?i)h264', 'H.264')}{'.'+vc.match(/[xX]264/)}{'.'+fn.match(/(?i:xvid)/).upperInitial()}{'.'+fn.match(/(?i:avc)/).toUpperCase()}{"-$group"}
Ripped:
/tank/my_tv_remux/{n}/{"Season ${s.pad(2)}/"}{n.space('.').replaceAll(/[()]+/)}.{s00e00}.{t.space('.').replacePart('(Part.$1)').replaceAll(/[,]+/)}.1080p.Blu-ray{'.'+audios.groupBy{ it.Codec }.collect{ c, a -> [c] + a*.Language }.flatten().join('.')}{'.['+texts.language.flatten().join('.')+']'}{'.'+vc.replace('Microsoft', 'VC-1')}
Code: Select all
/tank/{file =~ /New Encodes/ ? 'my_tv_remux' : 'tv_x264' }
Code: Select all
{isEnc = (file =~ /New Encodes/); isEnc ? true : false} {isEnc ? true : false}
Code: Select all
{(file =~ /New Encodes/ ? allOf{vc}{ac} : allOf{source}{group})*.upper().join('.')}