Page 1 of 1

Detect if tv shows or movies

Posted: 15 Apr 2016, 07:28
by Kapoue
Hello,

How can I detect or directly include the path in the rename if the file is a tv show or a movie?
For the moment I use the following command:

Code: Select all

filebot -rename -action test -non-strict --format "/{n}/{n} - {s00e00} - {t}"
Can I add something in my pattern?
I would like a path like:
\Tv Shows\Castle (2009)\Castle (2009) - S01E02 - Nanny McDead.avi
or
\Movies\Avatar\Avatar.avi
or
\Unsorted\MyProgram.zip

Regards,

Benjamin

Re: Detect if tv shows or movies

Posted: 15 Apr 2016, 07:48
by rednoah
If you want to handle movie/series/other in one single command then you need to use the amc script.

If you want to use -rename calls, then you need to do one call for movies and one call for series. You can't do everything at once with simple -rename calls.

Re: Detect if tv shows or movies

Posted: 15 Apr 2016, 07:56
by Kapoue
I just want to have the category whatever if I need to call one or two script but I don't want to change anything yet.

Re: Detect if tv shows or movies

Posted: 15 Apr 2016, 08:02
by rednoah
If you don't really know that you're doing, it's best to just go with the amc script:
viewtopic.php?f=4&t=215

Re: Detect if tv shows or movies

Posted: 15 Apr 2016, 08:06
by Kapoue
I have build a custom interface on top of filebot. Everything is ok now except that I don't know if I need to move my file in series or movies.
I currently use the amc script to automate this task but they are no UI and sometimes you don't know what happend.

Re: Detect if tv shows or movies

Posted: 15 Apr 2016, 08:24
by rednoah
Separating TV Shows and Movies is a tricky issue. You'll have to figure that one out yourself.

Best to separate them into Movie / TV folders and then call -rename on each of those folders.

Re: Detect if tv shows or movies

Posted: 05 May 2016, 20:45
by Axel Foley
rednoah wrote:Separating TV Shows and Movies is a tricky issue. You'll have to figure that one out yourself.

Best to separate them into Movie / TV folders and then call -rename on each of those folders.
that's what I'm doing right now: after the download, I manually put files in movies or tvshow directories and then I use a modified script to handle those two dirs differently.

Now a question, in the 4.7 update log I read this:
• Smart Mode for handling Movies, TV Shows, Anime and Music all at once
• Improved movie / episode auto-detection
Would like to know how to use this "Smart Mode" in the scripts and if it is effective in order to avoid putting movies and tvshows files in separate directories.

I'd like to modify my script but I don't know where to start to test this new feature, any help would be appreciated.

Thank you.

Re: Detect if tv shows or movies

Posted: 06 May 2016, 05:16
by rednoah
What is called Smart Mode / Automatic in the GUI is somewhat similar to the auto-detection aspects of the amc script. So the amc script is the closest CLI equivalent to the Smart Mode GUI feature.