When using the custom TMDB metadata agent found at GitHub - plexinc/tmdb-example-provider for a TV library, series ratings are not being passed to Plex correctly. They do seem to be stored in a ratings array, but they don’t show up in the Plex UI, and the XML does not include them. It also bears mentioning that the audienceRatingImage is not present, and the year of release is different.***
For comparison, here is a TMDB metadata agent XML response for a series, and then a Plex Series agent response for the same series:
TMDB example:
{
“ratingKey”: “118134”,
“key”: “/library/metadata/118134/children”,
“guid”: “tv.plex.agents.custom.example.themoviedb.tv://show/tmdb-show-1972”,
“slug”: “battlestar-galactica-2003”,
“studio”: “David Eick Productions”,
“type”: “show”,
“title”: “Battlestar Galactica (2003)”,
“contentRating”: “TV-14”,
“contentRatingAge”: 15,
“summary”: “When an old enemy, the Cylons, resurface and obliterate the 12 colonies, the crew of the aged Galactica protect a small civilian fleet - the last of humanity - as they journey toward the fabled 13th colony, Earth.”,
“index”: 1,
“year”: 2004,
“tagline”: “The fight to save humanity rages on.”,
“thumb”: “/library/metadata/118134/thumb/1770283508”,
“art”: “/library/metadata/118134/art/1770283508”,
“theme”: “/library/metadata/118134/theme/1770283508”,
“duration”: 2640000,
“originallyAvailableAt”: “2004-10-18”,
“leafCount”: 13,
“viewedLeafCount”: 1,
“childCount”: 1,
“addedAt”: 1578143760,
“updatedAt”: 1770283508,… arrays…
}
Plex Series agent:
{
“ratingKey”: “118134”,
“key”: “/library/metadata/118134/children”,
“guid”: “plex://show/5d9c0871ba6eb9001fba43ff”,
“slug”: “battlestar-galactica-2003”,
“studio”: “David Eick Productions”,
“type”: “show”,
“title”: “Battlestar Galactica (2003)”,
“contentRating”: “TV-14”,
“contentRatingAge”: 15,
“summary”: “When an old enemy, the Cylons, resurface and obliterate the 12 colonies, the crew of the aged Galactica protect a small civilian fleet - the last of humanity - as they journey toward the fabled 13th colony, Earth.”,
“index”: 1,
“audienceRating”: 8.2,
“year”: 2004,
“tagline”: “The fight to save humanity rages on.”,
“thumb”: “/library/metadata/118134/thumb/1770281738”,
“art”: “/library/metadata/118134/art/1770281738”,
“theme”: “/library/metadata/118134/theme/1770281738”,
“duration”: 2640000,
“originallyAvailableAt”: “2004-10-18”,
“leafCount”: 13,
“viewedLeafCount”: 1,
“childCount”: 1,
“addedAt”: 1578143760,
“updatedAt”: 1770281738,
“audienceRatingImage”: “themoviedb://image.rating”,… arrays …
}
PMS version: 1.43.0.10467
As a developer note, it would be great if there was a custom metadata agents page in the plex support docs that contained a link to the (maintained) TMDB example, as well as an example of expected output for a movie, series, etc. The API docs and TMDB example could be deeper resources, but a quick authoritative reference in the support docs would be great IMHO and likely encourage development. It would also be interesting to know where Plex Series scanner gets the data for certain fields, what the fallback system is for missing data etc. so we can replicate that logic more closely if we want to with our agents (e.g. the above example shows data from TMDB, some not, most glaringly the “year” value differs and I don’t know what source is providing it).