Page 1 of 1

listing and sorting...

Posted: 23 Nov 2021, 14:43
by motorpsycho
Hello,
I've just purchased your software.
And I'm loving it.
But I have a dubt: is it possible to scan a directory and get an exportable list of movies sorted by director'n name (or other variable, like the title)?
Where can I find a complete documentation?

Thanks in advance

Re: listing and sorting...

Posted: 23 Nov 2021, 15:52
by rednoah
If you're familiar with the command-line, then you can probably make it work.

The filebot -mediainfo command can help you with listing files, but for sorting you'd have to pipe the output to the sort command. On Unix bash You'd just add | sort but on Windows PowerShell it'll be somewhat different.

:arrow: The command-line documentation has an example for you:
https://www.filebot.net/cli.html

:idea: Bindings that are based on movie information (i.e. movie name, director, etc) will only work for files that have previously been processed with FileBot. Please read Metadata and Extended Attributes for details.

Re: listing and sorting...

Posted: 23 Nov 2021, 16:13
by motorpsycho
Thanks for answering! I'll check out the link you've provided and I'll try to... sort it out! :)

Re: listing and sorting...

Posted: 23 Nov 2021, 17:31
by rednoah
e.g. call filebot with PowerShell and sort the lines of the console output alphabetically:

Code: Select all

$ filebot -mediainfo -r "X:\Movies" --filter "movie" --format "{director} | {movie} | {f}" | Sort-Object
James Cameron | Avatar (2009) | X:\Movies\Avatar (2009).mkv
Richard Schenkman | The Man from Earth (2007) | X:\Movies\The Man from Earth (2007).mkv