Get "episode mode" for binding

Any questions? Need some help?
Post Reply
adonisk
Posts: 4
Joined: 05 Jun 2014, 09:44

Get "episode mode" for binding

Post by adonisk »

I'd like to automatically move the files to separate category directories depending on the episode mode of filebot.
For example, if I use the episode mode's value is AniDB, I'd have filebot move the file to the ./Anime/AnimeName directory (likewise for TV Shows via The TVDB and Movies via TheMovieDB).

I've checked the binding reference but I didn't find anything about this. If it exists but I didn't manage to find it, could you please kindly direct me to the info and if it doesn't exist would you consider adding it?
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Get "episode mode" for binding

Post by rednoah »

Anime don't have a season so the easiest check is:

Code: Select all

{episode.season ? 'TV Show' : 'Anime'}
In newer versions you can also do:

Code: Select all

{database =~ /Anidb/ ? 'Anime' : 'TV Shows'}
:idea: Please read the FAQ and How to Request Help.
Post Reply