jellyfin-plugin-webhook
jellyfin-plugin-webhook copied to clipboard
Live TV Playback Started not coming through on notification
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.
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.
Same issue I'm having, no LiveTV playback notifications are working, also using the webhook plugin
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