Can i have a default value for a binding if none is found?

All about user-defined episode / movie / file name format expressions
Post Reply
nzdreamer55
Posts: 162
Joined: 20 Jul 2012, 23:25

Can i have a default value for a binding if none is found?

Post by nzdreamer55 »

Is there a way to have a default binding if none is found.

Let's say my format expression {source} isn't found for a file. Can I have my format Expression drop in something like XXXXX or None?

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

Re: Can i have a default value for a binding if none is foun

Post by rednoah »

Right now you can do this:

Code: Select all

{try{source}catch(e){'OTHER'}}
I'll add this for convenience with future releases:

Code: Select all

{c{source} ?: 'OTHER'}
:idea: Please read the FAQ and How to Request Help.
TehBotol
Supporter
Posts: 34
Joined: 06 Mar 2013, 00:01

Re: Can i have a default value for a binding if none is foun

Post by TehBotol »

Thanks rednoah
Seem filebot only recognize WEB-DL but not WEB.DL
Post Reply