Detect if filename had been renamed by filebot

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
edenexposito
Posts: 21
Joined: 10 Sep 2013, 06:08

Detect if filename had been renamed by filebot

Post by edenexposito »

Hi again!

Sometimes filebot found a coincidence in databases and rename the file, but others time no. How i can detect automatically if filebot had found a coincidence or not.

Im thinking on shellscript that "exit" if no coincidence found or something similar...

Any idea?

Edit: In OSX.. could filebot change file tag color if found coincidence and rename the file?

With some like this...¿?¿?

Code: Select all

/Applications/FileBot.app/Contents/MacOS/filebot -rename "$1" --db TheMovieDB -non-strict --lang en --filter "y > 2005" --action test
if [$? -eq "Processed 1 files"]; then
exit 1
else
exit 0
fi
or this in /bin/zsh

Code: Select all

j=$(filebot -rename "movie 43.mkv" --db TheMovieDB -non-strict --lang en --filter "y > 2005" --action test)
if [$j -eq "Processed 1 files"]; then
exit 1
else
exit 0
Some idea?
:roll:

Thanks!
User avatar
rednoah
The Source
Posts: 23003
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Detect if filename had been renamed by filebot

Post by rednoah »

I'm giving you better exit codes with r1724. At least if nothing is renamed it'll error out.
:idea: Please read the FAQ and How to Request Help.
edenexposito
Posts: 21
Joined: 10 Sep 2013, 06:08

Re: Detect if filename had been renamed by filebot

Post by edenexposito »

Perfect!!

With exit code i can filter what files can be found with filebot before process it
edenexposito
Posts: 21
Joined: 10 Sep 2013, 06:08

Re: Detect if filename had been renamed by filebot

Post by edenexposito »

Its normal that "filebot-3.62-r1724-ec.jar" size is ~100kb in repository? all others jar are about 26Mg
User avatar
rednoah
The Source
Posts: 23003
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Detect if filename had been renamed by filebot

Post by rednoah »

Ran the upload again. Looks good now.
:idea: Please read the FAQ and How to Request Help.
Post Reply