So I reorganized my file naming scheme to specify approximate video quality in title using the following script
Code: Select all
{
if (((vbr > 30e6) && (hd==/UHD/)) || ((vbr > 10e6) && (hd==/HD/)))
'Movies Remux'
else
{vc =~ /HEVC|265/ ? 'Movies H.265' : 'Movies H.264'}
}
{'/!!! HARD-LINKED'}/{plex[1]}{'/'}
{ny}{allOf
{tags.join(', ')}
{vs =~ /BluRay/ ? null : vs}
{allOf
{vf}
{hdr.replace('Dolby Vision', 'DV')}
{vc.replace('AVC','x264').replace('HEVC','x265')}
{vbr.replace(' Mbps', 'mbps')} <-------------- problem code
.joining(' ', '', '')}
{audio.title =~ /(?i)Commentary/ ? 'Commentary' : null}
{group}
.joining('] [', ' [', ']')}
{if (f.subtitle) {subt}}

Yet for whatever reason, in the CLI, with the same code in the .groovy file, it's just skipping past the line specified.

Code: Select all
{vbr.replace(' Mbps', 'mbps')}