Page 1 of 1

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

Posted: 04 Jan 2014, 05:59
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.

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

Posted: 04 Jan 2014, 07:40
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