Nfo.groovy

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Boutzo
Posts: 6
Joined: 01 Jan 2025, 00:27

Nfo.groovy

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

Re: Nfo.groovy

Post 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?



:idea: 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>
:idea: Please read the FAQ and How to Request Help.
Boutzo
Posts: 6
Joined: 01 Jan 2025, 00:27

Re: Nfo.groovy

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

Re: Nfo.groovy

Post 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>

:idea: <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.


:idea: 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?
:idea: Please read the FAQ and How to Request Help.
Boutzo
Posts: 6
Joined: 01 Jan 2025, 00:27

Re: Nfo.groovy

Post by Boutzo »

Haven't gotten that far yet.
User avatar
rednoah
The Source
Posts: 24009
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Nfo.groovy

Post by rednoah »

I've updated the nfo script to not include empty <role /> elements to avoid confusion: https://github.com/filebot/scripts/comm ... c1b42dfe47
:idea: Please read the FAQ and How to Request Help.
Post Reply