Plex NFO Agent Forum Preview

The only way to get global cast is to have the Discover credits feature. The behaviour you’re seeing now is how it used to work everywhere in PMS before that feature was introduced.

To support this feature for NFOs we could do a couple of things:

  • Ensure your NFOs don’t include any cast information and,
  • include the Plex provider in a custom agent at the position just after the NFO provider

We could potentially add preferences for the NFO provider to not read any cast from the NFO files, etc. Then you could leave the NFO files as-is and it would just automatically pick up the cast info from the next provider in the agent, which if it’s the Plex provider will give you the Discover credits.

or,

  • The NFO included the Plex id for each cast member. This would be a custom field in the NFO, something like this:
  <actor>
    <name>Paul McGillion</name>
    <role>Carson Beckett</role>
    <thumb>https://image.tmdb.org/t/p/h632/43sfykb5iFosUHZqCnmx5GFFkro.jpg</thumb>
    <profile>https://www.themoviedb.org/person/26069</profile>
    <type>GuestStar</type>
    <tmdbid>26069</tmdbid>
    <plexid>5d776834eb5d26001f1e060d</plexid>
  </actor>

That’s it, I had added default="false" but forgot to go and change it to true. It’s working now. I’ll ask the filebot developer to add default="true".

I think having it check for true is probably prudent so unless someone else has an objection to that I’d say leave it alone.

BTW… I’m still seeing guid="tv.plex.agents.nfo.movie://movie/tmdb_858024". Is that expected or should this change to a plexid when matched ?

That makes sense and I kinda expected that to be the case but wanted to be sure. I’ll give it a test shortly and see how it goes.

If there is an id available we should use it, even when no default is set.

That’s what the guid should ideally look like. There is no Plex id we can assign to it as we’re not matching with the Plex provider (unless you’re creating a custom one which includes the Plex provider as the primary).

The default NFO agents don’t do any online matching, they only read the local NFO files and the local assets.

Okay, so would there be no way to migrate watched status or played history from the existing agent to the new one ?

If you changed the agent on an existing library which already has a watch/play state for these it will automatically migrate these over when you refresh the metadata.

Okay, will add that to my list of things to test.

That would be great! Thanks!

Confirmed this works. However I’ll need to need to think about this one. While I hate discovery credits, I live with it because cast is scoped across my entire server. Going backwards to a library only scope is not ideal but something I might just need to deal with.

Pros and cons and all that …

1 Like

Confirmed this worked, at least at a basic level with 1 movie. Will want to run a larger test 4,700+ movies with 3,200+ play history and 43k episodes with 26k+ play history) and see how it goes.

Anyhow, need to run so thats enough for today. I’ll take another look when your post the updated server build with multi episode support later this week.

Nice job so far, thank you.

1 Like

Excellent. Glad to help if you have any requests.

3 Likes

Is there a feature to automatically create collections based on tags?

This would avoid a lot of hassle, such as ensuring my custom collections aren’t lost when reinstalling the Plex image after migrating data.

I found that using Plex NFO Movies can automatically categorize movies based on the <genre> value, but it causes all movies to use the same poster as a thumbnail, seemingly because it’s incorrectly retrieving all poster images from that path.

It’s on the roadmap, but it will probably come after the initial launch.

I don’t really know what you mean, genres and posters are not related at all.

How are your files organised in the path?

it causes all movies to use the same poster as a thumbnail, seemingly because it’s incorrectly retrieving all poster images from that path.

I’ve experienced this as well.

Could you elaborate, I don’t really know what you mean.

Screenshots, server logs, sample nfo, anything to help me understand the issue would be helpful.

The regular Plex agent does use the Album tag from mp4 files to create collections.

Unless nfo files know a dedicated property for the concept of “collection”, I propose to make the behavior consistent in the nfo agent as well.

They do.

You can define it in a set element:

e.g.

    <set>
        <name>Kingsman Collection</name>
        <overview>The story of a super-secret spy organization that recruits an unrefined but promising street kid into the agency&apos;s ultra-competitive training program.</overview>
    </set>

Some generators also include a collection id:

  <set tmdbcolid="645">
    <name>James Bond Collection</name>
    <overview />
  </set>
2 Likes

Here is a new preview build, which addresses some of the issues:

  • Support for episode spanning (e.g. S01E01-E02).
  • Support for ratings (TMDB, IMDB and RT Critic ratings only).
  • Improved handling of the id/uniqueid fields when generating the Plex guids.
  • Directors were not being pulled in for episodes.
  • aired is considered for the date when premiered is not supplied.

For the spanned episodes (multi-episode) support, the nfo should still be name identically to the media file and should contain <episodedetails> for each episode in the span.

e.g.

<episodedetails>
  <episode>1</episode>
  .... data for episode 1
</episodedetails>
<episodedetails>
  <episode>2</episode>
  .... data for episode 2
</episodedetails>

Ratings should look like this (the one marked as default will be used, unless overridden in the library preferences):

  <ratings>
    <rating name="imdb" max="10" default="true">
      <value>5.4</value>
      <votes>19919</votes>
    </rating>
    <rating name="themoviedb" max="10">
      <value>5.778</value>
      <votes>523</votes>
    </rating>
    <rating name="tomatometerallcritics" max="100">
      <value>58</value>
    </rating>
  </ratings>

Plex Media Server 1.43.1.10505-3d4b4267d

Available Downloads

Windows

macOS

Debian/Ubuntu

RedHat/CentOS/Fedora

FreeBSD

Snap Package

Android (NVIDIA Shield)

ASUSTOR

Netgear

Seagate

Synology DSM 6

Synology DSM 7

Synology DSM 7.2

TerraMaster

TerraMaster TOS 5

Thecus

Unraid

WD Docker

WD Cloud OS5

WD My Cloud DL2100

WD My Cloud DL2100 OS5

WD My Cloud DL4100

WD My Cloud DL4100 OS5

WD My Cloud EX2

WD My Cloud EX2100

WD My Cloud EX2100 OS5

WD My Cloud EX2 Ultra

WD My Cloud EX2 Ultra OS5

WD My Cloud EX4100

WD My Cloud EX4100 OS5

WD My Cloud Mirror

WD My Cloud Mirror OS5

WD My Cloud Mirror Gen2

WD My Cloud OS5

WD My Passport

WD My Cloud PR2100

WD My Cloud PR2100 OS5

WD My Cloud PR4100

WD My Cloud PR4100 OS5


Total platforms: 40 | Total files: 68

3 Likes

Your DM’s are closed. The issue persists in this build. Local posters, fanarts, etc. are not picked. up. When using the XBMCnfoMoviesImporter legacy plugin, they are.

I’ve opened up my DMs for you, please try again.

1 Like