[HELP] Excluding All Non-Media Files In CLI
Posted: 15 Jun 2014, 21:30
Hey Noah!
It's been a while since I've posted on your forums, and I must say I'm loving the new change, especially the new updates to FileBot!!
Recently I've decided to give full reins to FileBot, and start with the CLI, however I'm having a slight issue... Before I was used to dragging in files and manually excluding ones I don't want (.nfo, .srt .etc) however with the CLI it will just mass move everything it matches to...
Now I read up on a forum post somewhere that you linked to a file I just had to edit with;
However I don't seem to be getting it right...
All I want is to be able to ONLY move video files (.mp4, .avi, .mkv) etc and leave behind the subtitles, nfo's, etc.
My CLI currently is;
This basically renames files in the specified folder, switches to IMDB for its matching, then a bit of tricks you taught me to get it to use the genre as a folder name, finally skips all conflicts. Does a great job, except for the manual processing afterwards. 
I'm hoping you'll have an easy enough fix for me to implement.
All of the best, and long live FileBot!!
It's been a while since I've posted on your forums, and I must say I'm loving the new change, especially the new updates to FileBot!!

Now I read up on a forum post somewhere that you linked to a file I just had to edit with;
Code: Select all
input = input.findAll{ it.isVideo() }
All I want is to be able to ONLY move video files (.mp4, .avi, .mkv) etc and leave behind the subtitles, nfo's, etc.
My CLI currently is;
Code: Select all
filebot -rename "H:/Movies To Sort/" --db IMDB --format "H:/Movies/{imdb.genres.take(1).join(' ')}/{n.replaceAll(':', replacement = ' -')} ({y})" --conflict skip

I'm hoping you'll have an easy enough fix for me to implement.
All of the best, and long live FileBot!!
