Page 1 of 1

Help How can I add brackets???

Posted: 13 Nov 2024, 08:05
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

Re: Help How can I add brackets???

Posted: 13 Nov 2024, 10:07
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.

Re: Help How can I add brackets???

Posted: 13 Nov 2024, 10:13
by piter332
Thank you very much for your help

Re: Help How can I add brackets???

Posted: 13 Nov 2024, 10:22
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.

Re: Help How can I add brackets???

Posted: 13 Nov 2024, 10:28
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 ]

Re: Help How can I add brackets???

Posted: 13 Nov 2024, 12:46
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}]

Re: Help How can I add brackets???

Posted: 13 Nov 2024, 12:56
by piter332
Perfect, Thank you very much