listing and sorting...

Support for Windows users
Post Reply
motorpsycho
Posts: 4
Joined: 23 Nov 2021, 14:38

listing and sorting...

Post 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
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: listing and sorting...

Post 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.
:idea: Please read the FAQ and How to Request Help.
motorpsycho
Posts: 4
Joined: 23 Nov 2021, 14:38

Re: listing and sorting...

Post by motorpsycho »

Thanks for answering! I'll check out the link you've provided and I'll try to... sort it out! :)
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: listing and sorting...

Post 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
:idea: Please read the FAQ and How to Request Help.
Post Reply