mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 06:18:28 +01:00
remember display mirroring
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user