Can't wrap my head around this -- Need help please

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
nighthawk13
Posts: 1
Joined: 04 Jan 2014, 05:53

Can't wrap my head around this -- Need help please

Post by nighthawk13 »

I've been staring at this groovy scripting and I can't figure it out.

I would like a simple script that I can run one the completion of a torrent download with transmission. I can get done what I need if I run it manually in CLI. However, the problem is that I need something that can run one command for movies and one command for tv shows. Filebot is not correctly identifying movies/shows.

The following command works exactly how I want:

filebot -rename file.ext --format "{s00e00} - {t} - {n}" --db thetvdb

The following command works exactly how I want for movies:
filebot -rename file.ext --form "{n} ({y}) - {certification} [{genres}]" --db imdb

The problem is that because the formats are different, I can't run just one command, and on top of that the database isn't being chosen correctly by filebot.

Can someone please help me with this? I have founds scripts out there for Transmission on MAC but nothing for Linux.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Can't wrap my head around this -- Need help please

Post by rednoah »

So your key problem is differentiating between Episode files and Movie files?

Once you think about it you will find it's surprisingly tricky and hard to do universally well. This is my best attempt at solving this problem:
http://www.filebot.net/forums/viewtopic ... =215#p1561
:idea: Please read the FAQ and How to Request Help.
Post Reply