I’ve noticed recently that some shows do not scrobble properly when the Plex server is using the new Plex TV Agent.
For example, Mythic Quest does not scrobble properly with the trakt webhook. I’ve taken a look to see if the webhook is passing on the correct IDs and it appears that there are some formatting differences passed onto the webhook payload when using the new Plex TV agent.
This is an example of the webhook payload that is sent with the old agent which properly scrobbles to trakt:
Metadata":{
"librarySectionType":"show",
"ratingKey":"104560",
"key":"/library/metadata/104560",
"parentRatingKey":"104558",
"grandparentRatingKey":"104557",
"guid":"com.plexapp.agents.thetvdb://362829/1/1?lang=en",
"parentGuid":"com.plexapp.agents.thetvdb://362829/1?lang=en",
"grandparentGuid":"com.plexapp.agents.thetvdb://362829?lang=en",
"type":"episode",
"title":"Pilot",
"grandparentKey":"/library/metadata/104557",
"parentKey":"/library/metadata/104558",
"librarySectionTitle":"TV Shows",
"librarySectionID":2,
"librarySectionKey":"/library/sections/2",
"grandparentTitle":"Mythic Quest",
"parentTitle":"Season 1",
"contentRating":"TV-MA",
"summary":"As the hit video game Mythic Quest prepares to launch its newest update, creator Ian Grimm obsesses over a seemingly minor detail.",
"index":1,
"parentIndex":1,
"viewCount":1,
"lastViewedAt":1605071175,
"year":2020,
"thumb":"/library/metadata/104560/thumb/1620465313",
"art":"/library/metadata/104557/art/1620465313",
"parentThumb":"/library/metadata/104558/thumb/1590256581",
"grandparentThumb":"/library/metadata/104557/thumb/1620465313",
"grandparentArt":"/library/metadata/104557/art/1620465313",
"grandparentTheme":"/library/metadata/104557/theme/1620465313",
"originallyAvailableAt":"2020-02-07",
"addedAt":1581053423,
"updatedAt":1620465313,
"Writer":[
{
"id":11342,
"filter":"writer=11342",
"tag":"Charlie Day"
},
{
"id":11378,
"filter":"writer=11378",
"tag":"Megan Ganz"
},
{
"id":11343,
"filter":"writer=11343",
"tag":"Rob McElhenney"
}
]
And here is the payload when using the new Plex Agent, this one does not get scrobbled to Trakt:
"Metadata":{
"librarySectionType":"show",
"ratingKey":"104560",
"key":"/library/metadata/104560",
"parentRatingKey":"104558",
"grandparentRatingKey":"104557",
"guid":"plex://episode/5e16137d4e7a9b001ec08b37",
"parentGuid":"plex://season/602e76a4de471d002d080f62",
"grandparentGuid":"plex://show/5d9c0922170e24001f2af500",
"type":"episode",
"title":"Pilot",
"grandparentKey":"/library/metadata/104557",
"parentKey":"/library/metadata/104558",
"librarySectionTitle":"TV Shows",
"librarySectionID":2,
"librarySectionKey":"/library/sections/2",
"grandparentTitle":"Mythic Quest",
"parentTitle":"Season 1",
"contentRating":"TV-MA",
"summary":"As the hit video game Mythic Quest prepares to launch its newest update, creator Ian Grimm obsesses over a seemingly minor detail.",
"index":1,
"parentIndex":1,
"audienceRating":8.2,
"viewCount":1,
"lastViewedAt":1605071175,
"parentYear":2020,
"thumb":"/library/metadata/104560/thumb/1620367553",
"art":"/library/metadata/104558/art/1620367553",
"parentThumb":"/library/metadata/104558/thumb/1620367553",
"grandparentThumb":"/library/metadata/104557/thumb/1620367553",
"grandparentArt":"/library/metadata/104557/art/1620367553",
"grandparentTheme":"/library/metadata/104557/theme/1620367553",
"originallyAvailableAt":"2020-02-07",
"addedAt":1581053423,
"updatedAt":1620367553,
"audienceRatingImage":"themoviedb://image.rating",
"Director":[
{
"id":10293,
"filter":"director=10293",
"tag":"David Gordon Green"
}
],
"Writer":[
{
"id":11343,
"filter":"writer=11343",
"tag":"Rob McElhenney"
},
{
"id":11378,
"filter":"writer=11378",
"tag":"Megan Ganz"
},
{
"id":11342,
"filter":"writer=11342",
"tag":"Charlie Day"
}
],
"Guid":[
{
"id":"imdb://tt9719170"
},
{
"id":"tmdb://1969147"
},
{
"id":"tvdb://7501639"
}
],
"Role":[
{
"id":45959,
"filter":"actor=45959",
"tag":"Elisha Henig",
"role":"Pootie Shoe",
"thumb":"https://metadata-static.plex.tv/people/5d776c657a53e9001e741fe7.jpg"
},
{
"id":95715,
"filter":"actor=95715",
"tag":"Naomi Ekperigin",
"role":"Carol",
"thumb":"https://metadata-static.plex.tv/people/5e164adf61c6140040d80b49.jpg"
}
]
}
I’m not sure the inner working of the Trakt scrobbler and how it parses the data, but it does look like the new TV agent uses a new “plex://episode” format in the metadata, however it also does pass imdb, tmdb and tvdb IDs seperately. Would it be possible to update the scrobbler so that it is compatible with the new agent? The weird thing is that most shows still do work with the new agent, i’ve just noticed a few that havent been working properly like Mythic Quest above or Invincible.