aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Notifications
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-01-26 15:40:15 -0500
committerGitHub <noreply@github.com>2017-01-26 15:40:15 -0500
commit1cd5e208713a057680b915c9136e0d4493611ed3 (patch)
tree59e258ecd246dfb253c06cade5f0092af9874774 /Emby.Server.Implementations/Notifications
parent0d0e4ad695f3657d7ca3eef1ed54fe8608a490a1 (diff)
parent9ebf9162ab68fbf61a1dd5e7801eb9abe985762c (diff)
Merge pull request #2425 from MediaBrowser/beta
Beta
Diffstat (limited to 'Emby.Server.Implementations/Notifications')
-rw-r--r--Emby.Server.Implementations/Notifications/Notifications.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Notifications/Notifications.cs b/Emby.Server.Implementations/Notifications/Notifications.cs
index 2d441c18c..8f24dfe1a 100644
--- a/Emby.Server.Implementations/Notifications/Notifications.cs
+++ b/Emby.Server.Implementations/Notifications/Notifications.cs
@@ -430,6 +430,23 @@ namespace Emby.Server.Implementations.Notifications
return name;
}
+ public static string GetItemName(BaseItemInfo item)
+ {
+ var name = item.Name;
+
+ if (!string.IsNullOrWhiteSpace(item.SeriesName))
+ {
+ name = item.SeriesName + " - " + name;
+ }
+
+ if (item.Artists != null && item.Artists.Count > 0)
+ {
+ name = item.Artists[0] + " - " + name;
+ }
+
+ return name;
+ }
+
async void _userManager_UserCreated(object sender, GenericEventArgs<User> e)
{
var notification = new NotificationRequest