Page 1 of 1

Can filebot return any movie metadata?

Posted: 11 Dec 2023, 17:14
by frontrange
Does the cli provide any ability to return metadata like plot, actors, director? I would like to build a local database and am looking for a way to extract this metadata.

TIA.

Re: Can filebot return any movie metadata?

Posted: 12 Dec 2023, 06:34
by rednoah
Yes, you can use the command-line for that. There are multiple ways to do it.

A.
Let filebot generate *.nfo XML files.

B.
Alternatively, you can use the -list command to print information to the command-line using a custom format.

Re: Can filebot return any movie metadata?

Posted: 12 Dec 2023, 15:21
by frontrange
That's great, but I couldn't find any examples. Could you please point me to one where I pass a movie title and year and get the xml output file please?

Re: Can filebot return any movie metadata?

Posted: 12 Dec 2023, 15:44
by rednoah
A.
Please read Fetch artwork and NFO files (v2) for filebot -script fn:nfo details. You notably can only generate *.nfo files for movie files that have previously been processed with FileBot and tagged with xattr metadata.


B.
You can search for movies and print information like so:

Console Output: Select all

$ filebot -list --db TheMovieDB --q "avatar" --format "{n} | {y} | {director} | {actors}"
Avatar | 2009 | James Cameron | [Sam Worthington, Zoe SaldaƱa, ...]

Re: Can filebot return any movie metadata?

Posted: 12 Dec 2023, 17:40
by frontrange
Thanks for that! I tried it but it failed so I put an update under the support forum.