[4.8.5] fps returns Script1$_run_closure1@35e50e64

All your suggestions, requests and ideas for future development
Post Reply
yhm28
Posts: 20
Joined: 24 Jan 2018, 07:20

[4.8.5] fps returns Script1$_run_closure1@35e50e64

Post by yhm28 »

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.
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [4.8.5] fps returns Script1$_run_closure1@35e50e64

Post by rednoah »

What's your format?

Sounds like you're incorrectly using Groovy closures.

* Older versions had a bug that made closures evaluate on automatically accidentally. :lol:


EDIT:

This thread explains what's going on:
viewtopic.php?f=8&t=10719#p43539
:idea: Please read the FAQ and How to Request Help.
yhm28
Posts: 20
Joined: 24 Jan 2018, 07:20

Re: [4.8.5] fps returns Script1$_run_closure1@35e50e64

Post by yhm28 »

here is the code we worked out before, the same code I have used since then, that stopped working with the latest update:

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') +']'}
let me know what part I need to change to get this to work under 4.8.5
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [4.8.5] fps returns Script1$_run_closure1@35e50e64

Post by rednoah »

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(' ') + ']'}
:idea: Please read the FAQ and How to Request Help.
Post Reply