jellyfin-plugin-webhook icon indicating copy to clipboard operation
jellyfin-plugin-webhook copied to clipboard

Live TV Playback Started not coming through on notification

Open 97WaterPolo opened this issue 2 years ago • 2 comments

Hi everyone!

So I've been using the Webhook plugin with Jellyfin for awhile and it has been working great. I recently added LiveTV to my setup and I was under the impression it would work out of the box for PlaybackStarted.

However the notification plugin fails to notify on a LiveTV start. I dug through the Jellyfin API and searched the ActivityLog "/System/ActivityLog/Entries" and I see the entries for LiveTV in the response and they look , however no notification is seen as being added through the notification plugin. The activity log for two different entries can be seen below, a notification is received for the ID = 2879 but no notification is received for 2880

{
      "Id": 2880,
      "Name": "97WaterPolo is playing US: CNBC on Firefox",
      "Type": "VideoPlayback",
      "Date": "2023-01-16T04:36:27.4248466Z",
      "UserId": "c53f38e1148e41cfaf4048585488a6db",
      "Severity": "Information"
    },
    {
      "Id": 2879,
      "Name": "97WaterPolo  is playing The Enforcer on Firefox",
      "Type": "VideoPlayback",
      "Date": "2023-01-16T04:34:17.8285794Z",
      "UserId": "c53f38e1148e41cfaf4048585488a6db",
      "Severity": "Information"
    }

The image in the dashboard also shows the notification here.

image

I have no easy way to get the dev environment set up for this plugin but glancing through the source code I might think that LiveTV video types are getting marked as a "Themed" video in the below class.


//Inside PlaybackStartNotifier.cs
    public async Task OnEvent(PlaybackStartEventArgs eventArgs)
    {
        if (eventArgs.Item is null)
        {
            return;
        }

        if (eventArgs.Item.IsThemeMedia)
        {
            // Don't report theme song or local trailer playback.
            return;
        }
     //Rest of code and class
}

If I am missing anything that I need to enable the notification for Live TVs, but I have the PlaybackStart notification type added as well as SendAllProperties.

97WaterPolo avatar Jan 16 '23 04:01 97WaterPolo

Same issue I'm having, no LiveTV playback notifications are working, also using the webhook plugin

phazon90 avatar Jan 31 '23 15:01 phazon90

I have the same issue - cannot see a way to have Live TV playback included in my webhook

I have had to make an app that pulls the info i need by hitting the API every 10 seconds which is less than ideal

jhcooke98 avatar Jun 10 '23 03:06 jhcooke98