Help How can I add brackets???

All about user-defined episode / movie / file name format expressions
Post Reply
piter332
Posts: 5
Joined: 13 Nov 2024, 07:27

Help How can I add brackets???

Post by piter332 »

Help How can I add brackets???

Hi, I would like to know how I can add brackets [ ] before the source and at the end

Image
Before BDRip and at the end

Thanks
User avatar
rednoah
The Source
Posts: 23513
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help How can I add brackets???

Post by rednoah »

:?: What is the format you are currently using?



:idea: Easy answer, where [...] is included regardless of {vs} being defined or not:

Format: Select all

[{ vs }]
:idea: Easy answer, where [...] is excluded if {vs} is undefined:

Format: Select all

{ [vs] }
:idea: Complicated answer where we combine and join multiple values that each individually may or may not be defined using the given separator / prefix / postfix characters:

Format: Select all

{ allOf{ vs }{ vf }{ vc }.joining(' ', ' [', ']') }
See Learn how {expressions} work and useful Helper Functions for details.
:idea: Please read the FAQ and How to Request Help.
piter332
Posts: 5
Joined: 13 Nov 2024, 07:27

Re: Help How can I add brackets???

Post by piter332 »

Thank you very much for your help
User avatar
rednoah
The Source
Posts: 23513
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help How can I add brackets???

Post by rednoah »

rednoah wrote: 13 Nov 2024, 10:07 :?: What is the format you are currently using?
:idea: Please share the format you end up using in the end for the next guy who might stumble on this thread.
:idea: Please read the FAQ and How to Request Help.
piter332
Posts: 5
Joined: 13 Nov 2024, 07:27

Re: Help How can I add brackets???

Post by piter332 »

This is the format I'm using now.

Format: Select all

{ny} {sxe} {t} {vf} {source} {vcf} {vc} {audioLanguages} {acf} Subs{textLanguages}{tags}
And what I would like is that before {vcf} I had [
and at the end ]
User avatar
rednoah
The Source
Posts: 23513
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help How can I add brackets???

Post by rednoah »

piter332 wrote: 13 Nov 2024, 10:28 And what I would like is that before {vcf} I had [ and at the end ]
You probably mean before {vf} so you can just add [...] there and at the end:

Format: Select all

{ny} {sxe} {t} [{vf} {source} {vcf} {vc} {audioLanguages} {acf} Subs{textLanguages}{tags}]
:idea: Please read the FAQ and How to Request Help.
piter332
Posts: 5
Joined: 13 Nov 2024, 07:27

Re: Help How can I add brackets???

Post by piter332 »

Perfect, Thank you very much
Post Reply