Webhook API - playback status - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Development (https://forum.jellyfin.org/f-development) +--- Forum: Plugin Development (https://forum.jellyfin.org/f-plugin-development) +--- Thread: Webhook API - playback status (/t-webhook-api-playback-status) |
Webhook API - playback status - podonnell - 2024-07-03 I am playing around with the webhook API, and trying to send an event when the user pauses. It seems this is only detected when 'Playback Progress' is included. This however is sending tons of webhook requests during playback. Is there any way to detect a 'pause' action being taken, or is the 'IsPaused' status only detected if you send requests during Playback Progress? RE: Webhook API - playback status - crobibero - 2024-07-03 Looking at the server code, I believe that is the only way to determine whether playback is paused RE: Webhook API - playback status - podonnell - 2024-07-03 (2024-07-03, 02:30 AM)crobibero Wrote: Looking at the server code, I believe that is the only way to determine whether playback is paused Thanks for the info. May try to work with it and introduce a rate limiter or something. Would love if we could detect a pause action. Separate related question: Trying to pull the primary art for a series/movie, but item seems to be the specific episode art instead of the show artwork. Using: {{ServerUrl}}/Items/{{ItemId}}/Images/Primary Is there a list of what I could use in place of ItemId anywhere? I was searching the webhook github but this was the only example I could see, specifically the itemid. Thanks! RE: Webhook API - playback status - crobibero - 2024-07-03 Support for SeriesId was added but not added to the README.This is the file that adds all of the properties as some are missing from the README: https://github.com/jellyfin/jellyfin-plugin-webhook/blob/master/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs RE: Webhook API - playback status - podonnell - 2024-07-05 (2024-07-03, 12:37 PM)crobibero Wrote: Support for Thanks for this. Going to look through, but any idea if there is a variable that would capture a series/movie thumbnail? ItemID worked for movies but was just grabbing episode thumbnails instead of series thumbnail. RE: Webhook API - playback status - crobibero - 2024-07-05 You would need to switch on media type to do what you want RE: Webhook API - playback status - podonnell - 2024-07-05 (2024-07-05, 02:39 AM)crobibero Wrote: You would need to switch on media type to do what you want Sorry, is this a template setting, or a variable that would contain that data? |