Page 1 of 1

Exclude certain files from being moved by the script.

Posted: 18 Jan 2013, 09:34
by enumo
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

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

Posted: 18 Jan 2013, 09:46
by rednoah
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() }

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

Posted: 18 Jan 2013, 10:35
by enumo
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
 

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

Posted: 18 Jan 2013, 10:40
by rednoah
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" ...

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

Posted: 18 Jan 2013, 10:47
by enumo
Ah oke, thnx.