Webhook event media.play giving strange data

I’m working on making a very simple server to interpret the webhooks sent by my Plex server. Using Python and my Linux server, I’ve written a simple script to use IFTTT to raise the light level when I pause Plex, among other things. I’ve had success with media.paused, media.resume, and media.stop.

But… media.play is causing problems. When that particular JSON post is sent, a lot of extra data is coming through. Data that does not appear to be text. I can parse the other webhooks, but not media.play. Could it be possible that media.play is sending the poster instead of the link to the poster? Is there anything else special about media.play that I might be missing?

Please let me know if I can provide any more information.

In the documentation: https://support.plex.tv/hc/en-us/articles/115002267687-Webhooks

Hi, yes, I’ve read the documentation. As I said, I’ve been able to get other events to parse just fine. This one event, media.play, is giving information contrary to what the documentation is telling me it should. Unless I’m missing a specific part of the documentation, something is wrong with this particular event.

Edit: And I just now saw it. For the media.play and media.rate events, a second part of the POST request contains a JPEG thumbnail for the media. Thanks for getting me to take a closer look at the information, JohnnyWong16. :slight_smile: