I am failing at what I want to accomplish. I tried poking around the forums but couldn't assimilate much.
I want FileBot to add [SDR] when a file has no value for hdr. and of course I want to expand on this with more cases.
Code: Select all
{
if (hdr==/Dolby Vision/)
{hdr.replace('Dolby Vision','[DV]')}
else
'[SDR]'
}
Code: Select all
{
if (hdr==/Dolby Vision/)
{hdr.replace('Dolby Vision','[DV]')}
else
{hdr.replace(null,'[SDR]')}
}