can the script detect length of the movie name?

All about user-defined episode / movie / file name format expressions
Post Reply
fireheart2008
Posts: 37
Joined: 29 Jul 2014, 05:39

can the script detect length of the movie name?

Post by fireheart2008 »

like how many characters , maybe something like

Code: Select all

{n.length}
I was thinking of abbreviating some ridiculously long names and a way of detecting them
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: can the script detect length of the movie name?

Post by kim »

try this

Code: Select all

{n.length() > 50 ? n.acronym() : n}

Code: Select all

{n.length() > 50 ? n.acronym() : n}{' (' +  y + ')'}
jackmarison93
Posts: 2
Joined: 15 Nov 2018, 03:56

Re: can the script detect length of the movie name?

Post by jackmarison93 »

Thank you for sharing
Post Reply