# Webhook Metadata Duration Incorrect

**URL:** <https://forums.plex.tv/t/webhook-metadata-duration-incorrect/768610>\
**Category:** Plex Media Server\
**Tags:** webhooks\
**Created:** [January 5, 2022, 12:24am UTC](https://forums.plex.tv/t/webhook-metadata-duration-incorrect/768610 "2022-01-05T00:24:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon00x](https://avatars.discourse-cdn.com/v4/letter/b/cc9497/32.png) [@Brandon00x](https://forums.plex.tv/u/Brandon00x)\
**Post date:** [January 5, 2022, 12:24am UTC](https://forums.plex.tv/t/webhook-metadata-duration-incorrect/768610/1 "2022-01-05T00:24:09Z")

</div>

Server Version#:1.25.2.5319  
Player Version#: 4.66.1  
My Plex Server hosted on Windows 11 when sending the JSON file provided from the webhook, Metadata.duration for any show/movie is close but incorrect.

In the example provided if I view the same movies XML under Get Info \> View XML the duration under metadata is listed as 7643796 but the webhook JSON metadata duration is only 7560000. I could just get duration from the XML data but it would be nice to have this accurate.

Thank you.

 ![incorrectMetadataDuration](https://global.discourse-cdn.com/plex/original/4X/7/b/a/7ba69d80c704340047495b25dbe11c82694634c6.png)

---

<div class="post-metadata">

**Author:** ![SebastianNatschke\_ncs\_corp\_de](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@SebastianNatschke\_ncs\_corp\_de](https://forums.plex.tv/u/SebastianNatschke_ncs_corp_de)\
**Post date:** [February 2, 2022, 8:37pm UTC](https://forums.plex.tv/t/webhook-metadata-duration-incorrect/768610/2 "2022-02-02T20:37:41Z")

</div>

I have the same problem. Is there a solution for this.  
I would like to turn on the light during the credits.  
Thanks

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [February 3, 2022, 9:42am UTC](https://forums.plex.tv/t/webhook-metadata-duration-incorrect/768610/3 "2022-02-03T09:42:09Z")

</div>

I assume that the webhook data undergo the same anonymization process which is also used for the status reporting to plex.tv  
This is done to ensure that the actual media contents of your server stay unknown to an outside observer.

---

<div class="post-metadata">

**Author:** ![SebastianNatschke\_ncs\_corp\_de](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@SebastianNatschke\_ncs\_corp\_de](https://forums.plex.tv/u/SebastianNatschke_ncs_corp_de)\
**Post date:** [February 3, 2022, 10:07am UTC](https://forums.plex.tv/t/webhook-metadata-duration-incorrect/768610/4 "2022-02-03T10:07:51Z")

</div>

I can understand that. I’m just trying to calculate the credits so I can turn the lights on. I don’t want it to turn on when the playback is stopped.  
Therefore the exact length would be an advantage.  
Or there would have to be a webhook which transfers the credits.  
Also with the trailers it is a problem to find the beginning of the movie or series.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [May 4, 2022, 10:08am UTC](https://forums.plex.tv/t/webhook-metadata-duration-incorrect/768610/5 "2022-05-04T10:08:30Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
