Page 1 of 1

Curly brackets in filename

Posted: 23 Sep 2016, 07:02
by AronA
Hi,
I'm struggling to get the following format :

Code: Select all

Firefly s01e01 - Serenity {multi}
Specifically, I can't figure how to display curly brackets. I tried a few escape characters (','',/,\,#), but without success...

Current format code :

Code: Select all

{n} {s00e00.lower()} - {t} 
Any help ?

Thanks :D

Re: Curly brackets in filename

Posted: 23 Sep 2016, 08:08
by rednoah
I recommend using [] instead. ;)

If you really want {} then this is how you'd do it:

Code: Select all

{'{multi}'}

Re: Curly brackets in filename

Posted: 24 Mar 2017, 19:27
by BIZARRE
Hi guys, I've spent hours trying everything I can think of (in my limited capacity) reading this forum and many other pages. I've read the bits above but I'm trying to work out how to have this work within a file name:

{BluRay-1080p}

For the life of me I can't figure out if it is possible to actually escape a pair of curly brackets or not in Filebot. \{{source}-{vf}\} throws up a massive syntax error, is there anything I can do? Rednoah I'm half expecting you to roll your eyes at me and tell me I've done something stupid :D :D :D

Re: Curly brackets in filename

Posted: 24 Mar 2017, 20:25
by rednoah
1.
{} in file names are ugly. Use [] instead.

2.
You can't escape the outermost {expression} curly brackets, but you can do this:

Code: Select all

{"{$source-$vf}"}

Re: Curly brackets in filename

Posted: 24 Mar 2017, 21:48
by BIZARRE
Thanks Rednoah, for years I have used square brackets but annoyingly with Sonarr if I use square brackets Sonarr stops being able to see episodes with three digits in them.

Re: Curly brackets in filename

Posted: 24 Mar 2017, 22:03
by rednoah
BIZARRE wrote:Thanks Rednoah, for years I have used square brackets but annoyingly with Sonarr if I use square brackets Sonarr stops being able to see episodes with three digits in them.
Make a bug report and have them fix it. ;)

Re: Curly brackets in filename

Posted: 24 Mar 2017, 23:19
by BIZARRE
rednoah wrote:Make a bug report and have them fix it. ;)
Lmao, like they're gonna fix it.... useless sods. Rednoah you're far superior in customer support!!

Re: Curly brackets in filename

Posted: 01 Jun 2021, 21:35
by yodaspowart
Thanks this was really helpful.