|
|
@ -59,6 +59,12 @@ namespace Jellyfin.Server.Implementations.Events.Consumers.Session
|
|
|
|
|
|
|
|
|
|
|
|
var user = eventArgs.Users[0];
|
|
|
|
var user = eventArgs.Users[0];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var notificationType = GetPlaybackStoppedNotificationType(item.MediaType);
|
|
|
|
|
|
|
|
if (notificationType == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
await _activityManager.CreateAsync(new ActivityLog(
|
|
|
|
await _activityManager.CreateAsync(new ActivityLog(
|
|
|
|
string.Format(
|
|
|
|
string.Format(
|
|
|
|
CultureInfo.InvariantCulture,
|
|
|
|
CultureInfo.InvariantCulture,
|
|
|
@ -66,7 +72,7 @@ namespace Jellyfin.Server.Implementations.Events.Consumers.Session
|
|
|
|
user.Username,
|
|
|
|
user.Username,
|
|
|
|
GetItemName(item),
|
|
|
|
GetItemName(item),
|
|
|
|
eventArgs.DeviceName),
|
|
|
|
eventArgs.DeviceName),
|
|
|
|
GetPlaybackStoppedNotificationType(item.MediaType),
|
|
|
|
notificationType,
|
|
|
|
user.Id))
|
|
|
|
user.Id))
|
|
|
|
.ConfigureAwait(false);
|
|
|
|
.ConfigureAwait(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|