Curly brackets in filename

All about user-defined episode / movie / file name format expressions
Post Reply
AronA
Posts: 1
Joined: 22 Sep 2016, 19:44

Curly brackets in filename

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Curly brackets in filename

Post by rednoah »

I recommend using [] instead. ;)

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

Code: Select all

{'{multi}'}
:idea: Please read the FAQ and How to Request Help.
BIZARRE
Posts: 5
Joined: 12 Sep 2014, 12:37

Re: Curly brackets in filename

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Curly brackets in filename

Post 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}"}
:idea: Please read the FAQ and How to Request Help.
BIZARRE
Posts: 5
Joined: 12 Sep 2014, 12:37

Re: Curly brackets in filename

Post 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.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Curly brackets in filename

Post 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. ;)
:idea: Please read the FAQ and How to Request Help.
BIZARRE
Posts: 5
Joined: 12 Sep 2014, 12:37

Re: Curly brackets in filename

Post 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!!
yodaspowart
Posts: 16
Joined: 02 Jun 2017, 01:04

Re: Curly brackets in filename

Post by yodaspowart »

Thanks this was really helpful.
Post Reply