Season Year {sy} in parentheses () instead of brackets []

All about user-defined episode / movie / file name format expressions
Post Reply
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Season Year {sy} in parentheses () instead of brackets []

Post by rednoah »

{sy} is a List<Integer> object, so you can use Collection.joining(delimiter, prefix and suffix) for custom formatting.

e.g.

Format: Select all

{ sy.joining('-', '(', ')') }

Code: Select all

(2002-2003)
:idea: Please read the FAQ and How to Request Help.
Orthos
Posts: 2
Joined: 26 Mar 2022, 08:42

Re: Season Year {sy} in parentheses () instead of brackets []

Post by Orthos »

Hello!

When I use {sy} I get brackets around the season year. e.g. [2002] But I want parentheses instead. And I only want the year of each season. e.g. .../Season 01 (2010)/... ; .../Season 02 (2011)/... ; .../Season 03 (2011)/...

How can I do that? Can anyone help, please! :)

Regards,
Marc
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Season Year {sy} in parentheses () instead of brackets []

Post by rednoah »

Orthos wrote: 26 Mar 2022, 09:00 When I use {sy} I get brackets around the season year. e.g. [2002] But I want parentheses instead.
e.g. season years:

Code: Select all

{ sy.joining('-', '(', ')') }
e.g. season start year:

Code: Select all

({ sy.first() })
:idea: Please read the FAQ and How to Request Help.
Orthos
Posts: 2
Joined: 26 Mar 2022, 08:42

Re: Season Year {sy} in parentheses () instead of brackets []

Post by Orthos »

Fast response (#meepmeep)! Wow!! Thanks!!! :)

{ sy.joining('-', '(', ')') } works, but I thought it will show the whole airdate years e.g. (2002-2003) and not only e.g. (2002)
Post Reply