Page 1 of 1

Get "episode mode" for binding

Posted: 03 Sep 2014, 07:32
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?

Re: Get "episode mode" for binding

Posted: 03 Sep 2014, 08:13
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'}