RamboUnchained wrote:All of that actually looks quite foreign to me. Maybe I'm overthinking it. Or maybe I'm too used to being coddled by super simple GUIs. My mouth would water if I could just highlight a checkbox that says "organize files into genres."
Howdy... the power of Filebot is that it is designed to let the user do whatever they want to, by being flexible - not constrained to the programmer's rules, as most software is.
RamboUnchained wrote:DevXen's code is exactly what I want to use, but I don't even know where to put/modify .csv files.

I'll address CSV files at the bottom, FYI...
I'm at just about the point where I can help others, having spent (start crying for me now) around 100 hours working on my own format... I'm almost(!!!!) done, though. Of course, a lot of that is testing stuff I've found in these forums & elsewhere, studying how some things work, trying to learn tutorials... all randomly, instead of in an organized Step1, Step2, Step3... way.
RamboUnchained wrote:C:/Users/Rambo/Videos/Cleaned Library/TV Series/{genres[0]}/{n}/Season {s}/{n} - {s00e00} - {t}
And this for movies:
C:/Users/Rambo/Videos/Cleaned Library/Movies/{genres[0]}/{n} ({y})
Does this look proper?
Yup - those are quite simple formats, but they work.
RamboUnchained wrote:Also, for a movie with multiple genres like The Blind Side, how would I set it up to go to it's most predominant type? It's Sports | Drama, but I'd want it in the sports genre for sure.
Note: theTVDB and TVRage are user-maintained dbases, so users can edit their content (to some degree) - this allows someone to select the 'wrong' genres for a show, for many reasons - mostly user error.
In programming references, zero is '1st' ('coz computers have to start with 0 when counting), so genres[0] means the 'zero-th (aka first) genre (which, hopefully, was the first one given to that show and is considered the dominant one)'.
As red says, the dbase "should" have the most relevant/dominant genre as the '1st' one in its list, but no guarantees.
Ithiel & DevXen posted some of the most thorough formats on the forums.
Their original posts may be a bit out-of-date, but I (and so many others) have based my format on theirs, but over time, improvements in FB code, changes in the dbases, and other things, have allowed some great efficiencies to be found.
I've spent a lot of time improving mine, and rednoah has helped a helluvalot (as he is doing both the coding of the program AND providing great forum guidance, we all thank him!!!)
Groovy is a form of JavaScript; you don't really need to be a JS programmer to use it; some background in computer tech is handy; but as a newbie myself a year ago, I know it looks very confusing.
But it's not!
Once you're familiar with some fundamentals, you'll be able to do a lot more with your format than the above - IF you want to!
CSV Files:
What did you want to do that makes you think of using them?
One of my format's lines is:
Code: Select all
{csv('B:/Downloads/Filebot/TV Network-Country List.csv').get(info.network) ?: 'COUNTRY'}
- it reads the CSV file, which has a format of:
2;UK
ABC;US
AETV;US
... this has been created manually, matching TV networks to their countries of origin (something I want to refer to, but is not part of the dbase offering).
- it then brings in the network from the dbase and compares it to the CSV.
- if the network is found, it checks it - if it's ABC, it holds "US" in the buffer.
- it the network is NOT found, it replaces the 'blank network' with 'COUNTRY' (again, my personal choice).
Later, I add the country to the final filename.
Filebot has a 'revert' capability that's fabulous! If you accidently screw it up, you can undo it.
So you can play with files & see how they work.
Better idea, though... take a small file (10mb, doesn't matter what it actually is) and copy it a dozen times.
Copy some sample input filenames from your collection to these files.
Then run FB on these files.
The New Names pane will always show you what WILL HAPPEN, but you can edit the format to fix it before you take any action.
As to editing the format, just right-click, EDIT FORMAT on the FB window.
You have a short, single-line pane to edit, which is limiting...
I keep a text editor open & have my format in there.
I make a copy of it in a new tab, experiment with new code, then copy/paste into the EDIT FORMAT.
The preview of results comes up, and I repeat the editing or use it... as needed.
Again, ONCE YOU GET GOING, it's very easy to use.
I'm happy to assist...
(my handle is Rambo in most forums, so you've got my attention!)
P.S. - I hope you have a complete backup of that HD...!!!