[4.8.5] fps returns Script1$_run_closure1@35e50e64
[4.8.5] fps returns Script1$_run_closure1@35e50e64
Since version 4.8.5 I have had an error with "+fps", I get "Script1$_run_closure1@35e50e64" instead of "23.976". Rolled back to 4.8.3 and the error is gone.
Re: [4.8.5] fps returns Script1$_run_closure1@35e50e64
What's your format?
Sounds like you're incorrectly using Groovy closures.
* Older versions had a bug that made closures evaluate on automatically accidentally.
EDIT:
This thread explains what's going on:
viewtopic.php?f=8&t=10719#p43539
Sounds like you're incorrectly using Groovy closures.
* Older versions had a bug that made closures evaluate on automatically accidentally.

EDIT:
This thread explains what's going on:
viewtopic.php?f=8&t=10719#p43539
Re: [4.8.5] fps returns Script1$_run_closure1@35e50e64
here is the code we worked out before, the same code I have used since then, that stopped working with the latest update:
let me know what part I need to change to get this to work under 4.8.5
Code: Select all
{n} ({y}) {fn.contains('Extended') || fn.contains('EXTENDED') || fn.contains('extended.cut') ? ' (Extended)' : fn.contains('Special Edition') || fn.contains('SPECIAL EDITION') || fn.contains('SPECIAL.EDITION') ? ' (Special Edition)' : fn.contains('Unrated') || fn.contains('UNRATED') ? ' (Unrated)' : fn.contains('Uncensored') || fn.contains('UNCENSORED') ? ' (Uncensored)' : fn.contains('Remastered') || fn.contains('REMASTERED') ? ' (Remastered)':""} {'['+vf+' '+mbps+' '+ac+' '+af+' '+{video[0].FrameRate}+' ' +vc.replace('Microsoft', 'VC-1').replace ('AVC','H.264').replace ('HEVC','x265') +']'}
Re: [4.8.5] fps returns Script1$_run_closure1@35e50e64
Here's what I'd do to make this a little bit more readable:
Code: Select all
{ny}
{' (' + fn.match(/Extended|Special.Edition|Uncensored|Remastered/).space(' ').upperInitial().lowerTrail() + ')'}
{' [' + [vf, mbps, ac, af, fps, vc.replace('Microsoft':'VC-1', 'AVC':'H.264', 'HEVC':'x265')].join(' ') + ']'}