Page 1 of 1
Nfo.groovy
Posted: 18 Feb 2025, 18:03
by Boutzo
Working with the nfo.groovy script trying to generate episode.nfo's and noticed that none of the actors "roles" show up in the list. They all default as crew.job (Guest Stars) even the ones listed as actors and have a "role" assigned to them.
Is there anyway to correct this?
I've done tests with several series episodes and all results are the same.
Director, writers and credits are fine. Just the actors aren't processing correctly.
Re: Nfo.groovy
Posted: 19 Feb 2025, 03:23
by rednoah

Which series / episode are you testing with?

Which database are you using?

Can you share the NFO file that was generated so that we can have a look?

Here's what I get:
Console Output: Select all
$ filebot -script fn:nfo *.mkv
[EPISODE] Alias - 1x01 - Truth Be Told [Alias - 1x01 - Truth Be Told.mkv]
Generate Series NFO: TheMovieDB::TV::2046 [Alias.nfo]
Generate Episode NFO: Alias - 1x01 - Truth Be Told [Alias - 1x01 - Truth Be Told.nfo]
xml: Select all
<actor>
<name>Edward Atterton</name>
<role>Danny Hecht</role>
</actor>
<actor>
<name>William Wellman Jr.</name>
<role>Priest</role>
</actor>
<actor>
<name>Vicki Davis</name>
<role>Intern</role>
</actor>
<actor>
<name>Greg Collins</name>
<role>Kenny</role>
</actor>
<actor>
<name>Ric Young</name>
<role>Zhang Lee</role>
</actor>
<actor>
<name>Greta Sesheta</name>
<role>CIA Receptionist</role>
</actor>
<credits>J.J. Abrams</credits>
<director>J.J. Abrams</director>
Re: Nfo.groovy
Posted: 19 Feb 2025, 03:49
by Boutzo
I was using Family Guy Series Season 1 episode 1 using the tvdb database and all that would show up are the actors names. Roles would be blank.
but i do see tmdb database is working correctly.
Re: Nfo.groovy
Posted: 19 Feb 2025, 05:14
by rednoah
I see. So here's the TheTVDB API response we are working with:
and here is the generated XML / NFO file:
XML: Select all
<actor>
<name>Butch Hartman</name>
<role />
</actor>
<role> is empty because TheTVDB does not provide that piece of information. It would be the name of the character within the world of the series.

The
"peopleType":"Guest Star" bit is why this person is listed as
<actor>. The
"Guest Star" bit itself is not exported verbatim into the NFO file. AFAIK, it's always the same. All the main actors are listed in the series-level NFO file.

Do you have an example for an episode where an episode-level actor is not a
"Guest Star" by any chance?
Re: Nfo.groovy
Posted: 19 Feb 2025, 08:16
by Boutzo
Haven't gotten that far yet.
Re: Nfo.groovy
Posted: 19 Feb 2025, 15:20
by rednoah
I've updated the
nfo script to not include empty
<role /> elements to avoid confusion:
https://github.com/filebot/scripts/comm ... c1b42dfe47