Filter for Special Episode

Support for Windows users
Post Reply
scherzeking
Posts: 10
Joined: 16 Dec 2021, 21:39

Filter for Special Episode

Post by scherzeking »

Hello everyone,

I am using CLI and want to filter for special episodes, since the matching doesn't work correctly. I've found this topic viewtopic.php?t=2127 where I can use:

Code: Select all

--filter "s == 2"
However, what is the right input for specials? '0', 'special' or 'specials' didn't worked.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filter for Special Episode

Post by rednoah »

You can use the {regular} binding like so:

Code: Select all

--filter regular
e.g.

Code: Select all

filebot -list --db TheMovieDB::TV --q Firefly --filter regular


:idea: --filter e will also work because special episodes don't have an {e} episode number. You can use {special} episode number but you'll have to account for {special} being undefined for normal episodes that you want to include, hence it's rather more complicated:

Code: Select all

--filter e

Code: Select all

--filter 'any{ !special }{ true }'
:idea: Please read the FAQ and How to Request Help.
scherzeking
Posts: 10
Joined: 16 Dec 2021, 21:39

Re: Filter for Special Episode

Post by scherzeking »

Thank you so much! The first code worked perfect and is also very simple.
How could I miss that? I was scrolling through so many pages already xD
Post Reply