aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Implementations')
-rw-r--r--MediaBrowser.Server.Implementations/EntryPoints/ActivityLogEntryPoint.cs14
-rw-r--r--MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifications.cs8
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs23
-rw-r--r--MediaBrowser.Server.Implementations/Localization/Server/server.json19
-rw-r--r--MediaBrowser.Server.Implementations/Notifications/NotificationManager.cs1
5 files changed, 48 insertions, 17 deletions
diff --git a/MediaBrowser.Server.Implementations/EntryPoints/ActivityLogEntryPoint.cs b/MediaBrowser.Server.Implementations/EntryPoints/ActivityLogEntryPoint.cs
index 0bd772a56..fb1010f1b 100644
--- a/MediaBrowser.Server.Implementations/EntryPoints/ActivityLogEntryPoint.cs
+++ b/MediaBrowser.Server.Implementations/EntryPoints/ActivityLogEntryPoint.cs
@@ -117,6 +117,13 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
return;
}
+ var themeMedia = item as IThemeMedia;
+ if (themeMedia != null && themeMedia.IsThemeMedia)
+ {
+ // Don't report theme song or local trailer playback
+ return;
+ }
+
if (e.Users.Count == 0)
{
return;
@@ -142,6 +149,13 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
return;
}
+ var themeMedia = item as IThemeMedia;
+ if (themeMedia != null && themeMedia.IsThemeMedia)
+ {
+ // Don't report theme song or local trailer playback
+ return;
+ }
+
if (e.Users.Count == 0)
{
return;
diff --git a/MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifications.cs b/MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifications.cs
index 6a0bb780c..065b5e95d 100644
--- a/MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifications.cs
+++ b/MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifications.cs
@@ -195,19 +195,17 @@ namespace MediaBrowser.Server.Implementations.EntryPoints.Notifications
var user = e.Users.FirstOrDefault();
var item = e.MediaInfo;
+ var themeMedia = item as IThemeMedia;
- if (e.Item != null && e.Item.Parent == null)
+ if (themeMedia != null && themeMedia.IsThemeMedia)
{
// Don't report theme song or local trailer playback
- // TODO: This will also cause movie specials to not be reported
return;
}
var notification = new NotificationRequest
{
- NotificationType = type,
-
- ExcludeUserIds = e.Users.Select(i => i.Id.ToString("N")).ToList()
+ NotificationType = type
};
notification.Variables["ItemName"] = item.Name;
diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
index cc06c6c50..d072217af 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
@@ -475,13 +475,27 @@ namespace MediaBrowser.Server.Implementations.LiveTv
}
item.ChannelType = channelInfo.ChannelType;
- item.ProviderImageUrl = channelInfo.ImageUrl;
- item.HasProviderImage = channelInfo.HasImage;
- item.ProviderImagePath = channelInfo.ImagePath;
item.ExternalId = channelInfo.Id;
item.ServiceName = serviceName;
item.Number = channelInfo.Number;
+ var replaceImages = new List<ImageType>();
+
+ if (!string.Equals(item.ProviderImageUrl, channelInfo.ImageUrl, StringComparison.OrdinalIgnoreCase))
+ {
+ isNew = true;
+ replaceImages.Add(ImageType.Primary);
+ }
+ if (!string.Equals(item.ProviderImagePath, channelInfo.ImagePath, StringComparison.OrdinalIgnoreCase))
+ {
+ isNew = true;
+ replaceImages.Add(ImageType.Primary);
+ }
+
+ item.ProviderImageUrl = channelInfo.ImageUrl;
+ item.HasProviderImage = channelInfo.HasImage;
+ item.ProviderImagePath = channelInfo.ImagePath;
+
if (string.IsNullOrEmpty(item.Name))
{
item.Name = channelInfo.Name;
@@ -489,7 +503,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
await item.RefreshMetadata(new MetadataRefreshOptions
{
- ForceSave = isNew
+ ForceSave = isNew,
+ ReplaceImages = replaceImages.Distinct().ToList()
}, cancellationToken);
diff --git a/MediaBrowser.Server.Implementations/Localization/Server/server.json b/MediaBrowser.Server.Implementations/Localization/Server/server.json
index df9e28b90..6b1f3d91a 100644
--- a/MediaBrowser.Server.Implementations/Localization/Server/server.json
+++ b/MediaBrowser.Server.Implementations/Localization/Server/server.json
@@ -602,7 +602,6 @@
"LabelNotificationEnabled": "Enable this notification",
"LabelMonitorUsers": "Monitor activity from:",
"LabelSendNotificationToUsers": "Send the notification to:",
- "UsersNotNotifiedAboutSelfActivity": "Users will not be notified about their own activities.",
"LabelUseNotificationServices": "Use the following services:",
"CategoryUser": "User",
"CategorySystem": "System",
@@ -769,15 +768,15 @@
"LabelDisplayPluginsFor": "Display plugins for:",
"PluginTabMediaBrowserClassic": "MB Classic",
"PluginTabMediaBrowserTheater": "MB Theater",
- "LabelEpisodeName": "Episode name",
- "LabelSeriesName": "Series name",
+ "LabelEpisodeNamePlain": "Episode name",
+ "LabelSeriesNamePlain": "Series name",
"ValueSeriesNamePeriod": "Series.name",
"ValueSeriesNameUnderscore": "Series_name",
"ValueEpisodeNamePeriod": "Episode.name",
"ValueEpisodeNameUnderscore": "Episode_name",
- "LabelSeasonNumber": "Season number",
- "LabelEpisodeNumber": "Episode number",
- "LabelEndingEpisodeNumber": "Ending episode number",
+ "LabelSeasonNumberPlain": "Season number",
+ "LabelEpisodeNumberPlain": "Episode number",
+ "LabelEndingEpisodeNumberPlain": "Ending episode number",
"HeaderTypeText": "Enter Text",
"LabelTypeText": "Text",
"HeaderSearchForSubtitles": "Search for Subtitles",
@@ -1100,5 +1099,11 @@
"OptionNoTrailer": "No Trailer",
"OptionNoThemeSong": "No Theme Song",
"OptionNoThemeVideo": "No Theme Video",
- "LabelOneTimeDonationAmount": "Donation amount:"
+ "LabelOneTimeDonationAmount": "Donation amount:",
+ "OptionActor": "Actor",
+ "OptionComposer": "Composer",
+ "OptionDirector": "Director",
+ "OptionGuestStar": "Guest star",
+ "OptionProducer": "Producer",
+ "OptionWriter": "Writer"
}
diff --git a/MediaBrowser.Server.Implementations/Notifications/NotificationManager.cs b/MediaBrowser.Server.Implementations/Notifications/NotificationManager.cs
index 7286846db..3558922d8 100644
--- a/MediaBrowser.Server.Implementations/Notifications/NotificationManager.cs
+++ b/MediaBrowser.Server.Implementations/Notifications/NotificationManager.cs
@@ -44,7 +44,6 @@ namespace MediaBrowser.Server.Implementations.Notifications
GetConfiguration().GetOptions(notificationType);
var users = GetUserIds(request, options)
- .Except(request.ExcludeUserIds)
.Select(i => _userManager.GetUserById(new Guid(i)));
var title = GetTitle(request, options);