mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-26 03:57:12 +00:00
normalize session object
This commit is contained in:
@@ -23,6 +23,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Controller.Entities.TV;
|
||||
using MediaBrowser.Model.Threading;
|
||||
using MediaBrowser.Model.Dto;
|
||||
|
||||
namespace Emby.Server.Implementations.Notifications
|
||||
{
|
||||
@@ -260,7 +261,7 @@ namespace Emby.Server.Implementations.Notifications
|
||||
|
||||
var item = e.MediaInfo;
|
||||
|
||||
if ( item.IsThemeMedia)
|
||||
if (e.Item != null && e.Item.IsThemeMedia)
|
||||
{
|
||||
// Don't report theme song or local trailer playback
|
||||
return;
|
||||
@@ -430,7 +431,7 @@ namespace Emby.Server.Implementations.Notifications
|
||||
return name;
|
||||
}
|
||||
|
||||
public static string GetItemName(BaseItemInfo item)
|
||||
public static string GetItemName(BaseItemDto item)
|
||||
{
|
||||
var name = item.Name;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user