Exclude certain files from being moved by the script.

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
enumo
Posts: 21
Joined: 15 Jan 2013, 16:19

Exclude certain files from being moved by the script.

Post by enumo » 18 Jan 2013, 09:34

Hey Rednoah,

Is there by any chance a way to exclude certain files from being moved to the movies/tvshows folder?

Lets say i downloaded a movie and it has the following files:

- movie1.mkv
- movie1.srt
- movie1.nfo

is it possible to only move movie1.mkv?

thnx for the help.

gr. Oene

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

Re: Exclude certain files from being moved by the script.

Post by rednoah » 18 Jan 2013, 09:46

Sure, just run your own locally modified script.

This is my code:

Code: Select all

input = input.findAll{ it.isVideo() || it.isSubtitle() || it.isDisk() || it.isAudio() }
This is what you want:

Code: Select all

input = input.findAll{ it.isVideo() }
:idea: Please read the FAQ and How to Request Help.

enumo
Posts: 21
Joined: 15 Jan 2013, 16:19

Re: Exclude certain files from being moved by the script.

Post by enumo » 18 Jan 2013, 10:35

So i should do the following to the original script

Code: Select all

filebot -script fn:utorrent-postprocess "c:/media/downloads/compleet" --output "C:/media/" --action move --conflict override -non-strict --def subtitles=n artwork=n  "movieFormat=/films/{n} {y}/{fn}" "seriesFormat=/series/{n}/{fn}" >> "C:/Media/filebot.log" 2>&1
 
and change it into:

Code: Select all

filebot -script fn:utorrent-postprocess "c:/media/downloads/compleet" --output "C:/media/" --action move --conflict override -non-strict --def subtitles=n artwork=n  "movieFormat=/films/{n} {y}/{fn}" "seriesFormat=/series/{n}/{fn}" input = input.findAll { it.isVideo() } >> "C:/Media/filebot.log" 2>&1
 

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

Re: Exclude certain files from being moved by the script.

Post by rednoah » 18 Jan 2013, 10:40

No. You'll need to change the code. Means you'll need to download http://filebot.sourceforge.net/scripts/ ... ess.groovy, then open the file. Then make the change I described above. And then call your own script via filebot -script "C:/my-utorrent-postprocess.groovy" ...
:idea: Please read the FAQ and How to Request Help.

enumo
Posts: 21
Joined: 15 Jan 2013, 16:19

Re: Exclude certain files from being moved by the script.

Post by enumo » 18 Jan 2013, 10:47

Ah oke, thnx.

Post Reply