Excluding NFO files from -rename

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
nicr4wks
Posts: 1
Joined: 14 Jan 2016, 03:53

Excluding NFO files from -rename

Post by nicr4wks »

G'day guys,

I've just started using FileBot and have been reading through docs/scripts to find it is quiet a powerful program!

There is one feature I can not work out, when using -rename at the cli I would like to exclude the renaming of .nfo files.

Example:

Code: Select all

[TEST] Rename [E:\test\A popular movie\a.popular.movie.2015.1080p.bluray.x264-group.nfo] to [\A popular movie (2015)\A popular movie 2015 1080p.nfo]
This NFO file should retain it's original filename.


My command is as follows:

Code: Select all

filebot -rename "E:\test" --format "\{n} ({y})\{n} {y} {vf}" --db TheMovieDB -r -non-strict --action test --log all --log-file "F:\filebot\logs\log.txt"
Can anyone advise? Cheers!
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Excluding NFO files from -rename

Post by rednoah »

You can not process certain files by not passing them in. If you pass in a folder, then you pass in all the files in that folder. Instead of passing in a folder you can pass in multiple file paths and then only those files will be processed.

If it's for a single folder you could do something like filebot -rename *.mkv and this will tell the CMD to pass in all the mkv files in the current folder.

On Linux it's a simple matter of find | xargs | filebot but on Windows things are more tricky, and a Groovy script is probably easiest.

Not exactly what you need, but maybe you get the Gist of it:
viewtopic.php?f=4&t=280#p1135
:idea: Please read the FAQ and How to Request Help.
Post Reply