The Free Software Media System - Server Backend & API
ensure custom css is loaded last
Luke Pulverentidc7a59c73a1e
diff --git a/Emby.Server.Core/ApplicationHost.cs b/Emby.Server.Core/ApplicationHost.csindex 04309e7f41..584706e4f0 100644--- a/Emby.Server.Core/ApplicationHost.cs+++ b/Emby.Server.Core/ApplicationHost.cs@@ -434,41 +434,41 @@ namespace Emby.Server.Corevar result = new JsonSerializer(FileSystemManager, LogManager.GetLogger("JsonSerializer"));- ServiceStack.Text.JsConfig<LiveTvProgram>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<LiveTvChannel>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<LiveTvVideoRecording>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<LiveTvAudioRecording>.ExcludePropertyNames = new[] { "Artists", "AlbumArtists", "ChannelMediaSources", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Series>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Audio>.ExcludePropertyNames = new[] { "Artists", "AlbumArtists", "ChannelMediaSources", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<MusicAlbum>.ExcludePropertyNames = new[] { "Artists", "AlbumArtists", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<MusicArtist>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<MusicGenre>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<MusicVideo>.ExcludePropertyNames = new[] { "Artists", "AlbumArtists", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Movie>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Playlist>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<AudioPodcast>.ExcludePropertyNames = new[] { "Artists", "AlbumArtists", "ChannelMediaSources", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<AudioBook>.ExcludePropertyNames = new[] { "Artists", "AlbumArtists", "ChannelMediaSources", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Trailer>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<BoxSet>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Episode>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Season>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Book>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<CollectionFolder>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Folder>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Game>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<GameGenre>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<GameSystem>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Genre>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Person>.ExcludePropertyNames = new[] { "PlaceOfBirth", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Photo>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<PhotoAlbum>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Studio>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<UserRootFolder>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<UserView>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Video>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Year>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<Channel>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };- ServiceStack.Text.JsConfig<AggregateFolder>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "Keywords", "ExtraType" };+ ServiceStack.Text.JsConfig<LiveTvProgram>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<LiveTvChannel>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<LiveTvVideoRecording>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<LiveTvAudioRecording>.ExcludePropertyNames = new[] { "Artists", "AlbumArtists", "ChannelMediaSources", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Series>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Audio>.ExcludePropertyNames = new[] { "Artists", "AlbumArtists", "ChannelMediaSources", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<MusicAlbum>.ExcludePropertyNames = new[] { "Artists", "AlbumArtists", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<MusicArtist>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<MusicGenre>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<MusicVideo>.ExcludePropertyNames = new[] { "Artists", "AlbumArtists", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Movie>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Playlist>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<AudioPodcast>.ExcludePropertyNames = new[] { "Artists", "AlbumArtists", "ChannelMediaSources", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<AudioBook>.ExcludePropertyNames = new[] { "Artists", "AlbumArtists", "ChannelMediaSources", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Trailer>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<BoxSet>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Episode>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Season>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Book>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<CollectionFolder>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Folder>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Game>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<GameGenre>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<GameSystem>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Genre>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Person>.ExcludePropertyNames = new[] { "PlaceOfBirth", "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Photo>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<PhotoAlbum>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Studio>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<UserRootFolder>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<UserView>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Video>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Year>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<Channel>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };+ ServiceStack.Text.JsConfig<AggregateFolder>.ExcludePropertyNames = new[] { "ProviderIds", "ImageInfos", "ProductionLocations", "ThemeSongIds", "ThemeVideoIds", "TotalBitrate", "Taglines", "ExtraType" };return result;}diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.csindex 52abbae3e2..e4c05bce26 100644--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs@@ -251,7 +251,6 @@ namespace Emby.Server.Implementations.DataAddColumn(db, "TypedBaseItems", "SeriesId", "GUID", existingColumnNames);AddColumn(db, "TypedBaseItems", "ExternalSeriesId", "Text", existingColumnNames);AddColumn(db, "TypedBaseItems", "Tagline", "Text", existingColumnNames);- AddColumn(db, "TypedBaseItems", "Keywords", "Text", existingColumnNames);AddColumn(db, "TypedBaseItems", "ProviderIds", "Text", existingColumnNames);AddColumn(db, "TypedBaseItems", "Images", "Text", existingColumnNames);AddColumn(db, "TypedBaseItems", "ProductionLocations", "Text", existingColumnNames);@@ -454,7 +453,6 @@ namespace Emby.Server.Implementations.Data"InheritedTags","ExternalSeriesId","Tagline",- "Keywords","ProviderIds","Images","ProductionLocations",@@ -578,7 +576,6 @@ namespace Emby.Server.Implementations.Data"SeriesId","ExternalSeriesId","Tagline",- "Keywords","ProviderIds","Images","ProductionLocations",@@ -1011,15 +1008,6 @@ namespace Emby.Server.Implementations.DatasaveItemStatement.TryBind("@ExternalSeriesId", item.ExternalSeriesId);saveItemStatement.TryBind("@Tagline", item.Tagline);- if (item.Keywords.Count > 0)- {- saveItemStatement.TryBind("@Keywords", string.Join("|", item.Keywords.ToArray()));- }- else- {- saveItemStatement.TryBindNull("@Keywords");- }-saveItemStatement.TryBind("@ProviderIds", SerializeProviderIds(item));saveItemStatement.TryBind("@Images", SerializeImages(item));@@ -1874,15 +1862,6 @@ namespace Emby.Server.Implementations.Dataindex++;}- if (HasField(query, ItemFields.Keywords))- {- if (!reader.IsDBNull(index))- {- item.Keywords = reader.GetString(index).Split('|').Where(i => !string.IsNullOrWhiteSpace(i)).ToList();- }- index++;- }-if (!reader.IsDBNull(index)){DeserializeProviderIds(reader.GetString(index), item);@@ -2287,7 +2266,6 @@ namespace Emby.Server.Implementations.Dataswitch (name){case ItemFields.HomePageUrl:- case ItemFields.Keywords:case ItemFields.DisplayMediaType:case ItemFields.CustomRating:case ItemFields.ProductionLocations:@@ -4221,23 +4199,6 @@ namespace Emby.Server.Implementations.DatawhereClauses.Add(clause);}- if (query.Keywords.Length > 0)- {- var clauses = new List<string>();- var index = 0;- foreach (var item in query.Keywords)- {- clauses.Add("@Keyword" + index + " in (select CleanValue from itemvalues where ItemId=Guid and Type=5)");- if (statement != null)- {- statement.TryBind("@Keyword" + index, GetCleanValue(item));- }- index++;- }- var clause = "(" + string.Join(" OR ", clauses.ToArray()) + ")";- whereClauses.Add(clause);- }-if (query.OfficialRatings.Length > 0){var clauses = new List<string>();@@ -5435,7 +5396,6 @@ namespace Emby.Server.Implementations.Datalist.AddRange(item.Genres.Select(i => new Tuple<int, string>(2, i)));list.AddRange(item.Studios.Select(i => new Tuple<int, string>(3, i)));list.AddRange(item.Tags.Select(i => new Tuple<int, string>(4, i)));- list.AddRange(item.Keywords.Select(i => new Tuple<int, string>(5, i)));return list;}diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.csindex 2933a9f22e..a57ee0b9b0 100644--- a/Emby.Server.Implementations/Dto/DtoService.cs+++ b/Emby.Server.Implementations/Dto/DtoService.cs@@ -894,11 +894,6 @@ namespace Emby.Server.Implementations.Dtodto.Tags = item.Tags;}- if (fields.Contains(ItemFields.Keywords))- {- dto.Keywords = item.Keywords;- }-var hasAspectRatio = item as IHasAspectRatio;if (hasAspectRatio != null){diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.csindex 68ab259470..317f40a37a 100644--- a/Emby.Server.Implementations/Session/SessionManager.cs+++ b/Emby.Server.Implementations/Session/SessionManager.cs@@ -1675,7 +1675,6 @@ namespace Emby.Server.Implementations.SessiondtoOptions.Fields.Remove(ItemFields.ExternalEtag);dtoOptions.Fields.Remove(ItemFields.InheritedParentalRatingValue);dtoOptions.Fields.Remove(ItemFields.ItemCounts);- dtoOptions.Fields.Remove(ItemFields.Keywords);dtoOptions.Fields.Remove(ItemFields.MediaSourceCount);dtoOptions.Fields.Remove(ItemFields.MediaStreams);dtoOptions.Fields.Remove(ItemFields.MediaSources);diff --git a/MediaBrowser.Api/ItemUpdateService.cs b/MediaBrowser.Api/ItemUpdateService.csindex 8c04e979ee..5325df3251 100644--- a/MediaBrowser.Api/ItemUpdateService.cs+++ b/MediaBrowser.Api/ItemUpdateService.cs@@ -268,8 +268,6 @@ namespace MediaBrowser.Apiitem.Tagline = request.Taglines.FirstOrDefault();}- item.Keywords = request.Keywords;-if (request.Studios != null){item.Studios = request.Studios.Select(x => x.Name).ToList();diff --git a/MediaBrowser.Api/SimilarItemsHelper.cs b/MediaBrowser.Api/SimilarItemsHelper.csindex 5463ae9825..93aad0ef0f 100644--- a/MediaBrowser.Api/SimilarItemsHelper.cs+++ b/MediaBrowser.Api/SimilarItemsHelper.cs@@ -142,11 +142,6 @@ namespace MediaBrowser.Apireturn item.Tags;}- private static IEnumerable<string> GetKeywords(BaseItem item)- {- return item.Keywords;- }-/// <summary>/// Gets the similiarity score./// </summary>@@ -170,9 +165,6 @@ namespace MediaBrowser.Api// Find common tagspoints += GetTags(item1).Where(i => GetTags(item2).Contains(i, StringComparer.OrdinalIgnoreCase)).Sum(i => 10);- // Find common keywords- points += GetKeywords(item1).Where(i => GetKeywords(item2).Contains(i, StringComparer.OrdinalIgnoreCase)).Sum(i => 10);-// Find common studiospoints += item1.Studios.Where(i => item2.Studios.Contains(i, StringComparer.OrdinalIgnoreCase)).Sum(i => 3);diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.csindex b4a3d89eac..6f8d62c0cc 100644--- a/MediaBrowser.Controller/Entities/BaseItem.cs+++ b/MediaBrowser.Controller/Entities/BaseItem.cs@@ -45,7 +45,6 @@ namespace MediaBrowser.Controller.Entities{ThemeSongIds = new List<Guid>();ThemeVideoIds = new List<Guid>();- Keywords = new List<string>();Tags = new List<string>();Genres = new List<string>();Studios = new List<string>();@@ -881,7 +880,6 @@ namespace MediaBrowser.Controller.Entities[IgnoreDataMember]public List<string> Tags { get; set; }- public List<string> Keywords { get; set; }public List<string> ProductionLocations { get; set; }/// <summary>@@ -2279,11 +2277,6 @@ namespace MediaBrowser.Controller.EntitiesnewOptions.ForceSave = true;ownedItem.ProductionLocations = item.ProductionLocations.ToList();}- if (!item.Keywords.SequenceEqual(ownedItem.Keywords, StringComparer.Ordinal))- {- newOptions.ForceSave = true;- ownedItem.Keywords = item.Keywords.ToList();- }if (item.CommunityRating != ownedItem.CommunityRating){ownedItem.CommunityRating = item.CommunityRating;diff --git a/MediaBrowser.Controller/Entities/InternalItemsQuery.cs b/MediaBrowser.Controller/Entities/InternalItemsQuery.csindex 608e3f56c3..4f21aaa56b 100644--- a/MediaBrowser.Controller/Entities/InternalItemsQuery.cs+++ b/MediaBrowser.Controller/Entities/InternalItemsQuery.cs@@ -38,7 +38,6 @@ namespace MediaBrowser.Controller.Entitiespublic string[] ExcludeTags { get; set; }public string[] ExcludeInheritedTags { get; set; }public string[] Genres { get; set; }- public string[] Keywords { get; set; }public bool? IsSpecialSeason { get; set; }public bool? IsMissing { get; set; }@@ -194,7 +193,6 @@ namespace MediaBrowser.Controller.EntitiesOfficialRatings = new string[] { };SortBy = new string[] { };MediaTypes = new string[] { };- Keywords = new string[] { };IncludeItemTypes = new string[] { };ExcludeItemTypes = new string[] { };Genres = new string[] { };diff --git a/MediaBrowser.Controller/Entities/KeywordExtensions.cs b/MediaBrowser.Controller/Entities/KeywordExtensions.csdeleted file mode 100644index 5c9afdf3d5..0000000000--- a/MediaBrowser.Controller/Entities/KeywordExtensions.cs+++ /dev/null@@ -1,21 +0,0 @@-using System;-using System.Linq;--namespace MediaBrowser.Controller.Entities-{- public static class KeywordExtensions- {- public static void AddKeyword(this BaseItem item, string name)- {- if (string.IsNullOrWhiteSpace(name))- {- throw new ArgumentNullException("name");- }-- if (!item.Keywords.Contains(name, StringComparer.OrdinalIgnoreCase))- {- item.Keywords.Add(name);- }- }- }-}diff --git a/MediaBrowser.Controller/Entities/Trailer.cs b/MediaBrowser.Controller/Entities/Trailer.csindex b4a142a8e5..99acce164b 100644--- a/MediaBrowser.Controller/Entities/Trailer.cs+++ b/MediaBrowser.Controller/Entities/Trailer.cs@@ -15,7 +15,6 @@ namespace MediaBrowser.Controller.Entitiespublic Trailer(){RemoteTrailers = new List<MediaUrl>();- Keywords = new List<string>();TrailerTypes = new List<TrailerType> { TrailerType.LocalTrailer };}diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csprojindex 22f94695d8..e28e1761ec 100644--- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj+++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj@@ -101,7 +101,6 @@<Compile Include="Entities\IHasDisplayOrder.cs" /><Compile Include="Entities\IHasId.cs" /><Compile Include="Entities\IHasImages.cs" />- <Compile Include="Entities\KeywordExtensions.cs" /><Compile Include="Entities\IHasMediaSources.cs" /><Compile Include="Entities\IHasProgramAttributes.cs" /><Compile Include="Entities\IHasScreenshots.cs" />diff --git a/MediaBrowser.LocalMetadata/Parsers/BaseItemXmlParser.cs b/MediaBrowser.LocalMetadata/Parsers/BaseItemXmlParser.csindex 2edccf8c83..b92fc2ea8a 100644--- a/MediaBrowser.LocalMetadata/Parsers/BaseItemXmlParser.cs+++ b/MediaBrowser.LocalMetadata/Parsers/BaseItemXmlParser.cs@@ -638,22 +638,6 @@ namespace MediaBrowser.LocalMetadata.Parsersbreak;}- case "PlotKeywords":- {- if (!reader.IsEmptyElement)- {- using (var subtree = reader.ReadSubtree())- {- FetchFromKeywordsNode(subtree, item);- }- }- else- {- reader.Read();- }- break;- }-case "Persons":{if (!reader.IsEmptyElement)@@ -991,41 +975,6 @@ namespace MediaBrowser.LocalMetadata.Parsers}}- private void FetchFromKeywordsNode(XmlReader reader, BaseItem item)- {- reader.MoveToContent();- reader.Read();-- // Loop through each element- while (!reader.EOF && reader.ReadState == ReadState.Interactive)- {- if (reader.NodeType == XmlNodeType.Element)- {- switch (reader.Name)- {- case "PlotKeyword":- {- var tag = reader.ReadElementContentAsString();-- if (!string.IsNullOrWhiteSpace(tag))- {- item.AddKeyword(tag);- }- break;- }-- default:- reader.Skip();- break;- }- }- else- {- reader.Read();- }- }- }-/// <summary>/// Fetches the data from persons node./// </summary>diff --git a/MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.csindex 4eec330038..f112dfc81d 100644--- a/MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs+++ b/MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs@@ -80,7 +80,6 @@ namespace MediaBrowser.LocalMetadata.Savers"Overview","Persons",- "PlotKeywords","PremiereDate","ProductionYear","Rating",@@ -500,18 +499,6 @@ namespace MediaBrowser.LocalMetadata.Saverswriter.WriteEndElement();}- if (item.Keywords.Count > 0)- {- writer.WriteStartElement("PlotKeywords");-- foreach (var tag in item.Keywords)- {- writer.WriteElementString("PlotKeyword", tag);- }-- writer.WriteEndElement();- }-var people = libraryManager.GetPeople(item);if (people.Count > 0)diff --git a/MediaBrowser.Model/Dto/BaseItemDto.cs b/MediaBrowser.Model/Dto/BaseItemDto.csindex 8077a5211d..afd871be02 100644--- a/MediaBrowser.Model/Dto/BaseItemDto.cs+++ b/MediaBrowser.Model/Dto/BaseItemDto.cs@@ -440,12 +440,6 @@ namespace MediaBrowser.Model.Dto/// <value>The tags.</value>public List<string> Tags { get; set; }- /// <summary>- /// Gets or sets the keywords.- /// </summary>- /// <value>The keywords.</value>- public List<string> Keywords { get; set; }-/// <summary>/// Gets or sets the primary image aspect ratio, after image enhancements./// </summary>diff --git a/MediaBrowser.Model/Entities/MetadataFields.cs b/MediaBrowser.Model/Entities/MetadataFields.csindex a6c1388dc2..a99fd0fe01 100644--- a/MediaBrowser.Model/Entities/MetadataFields.cs+++ b/MediaBrowser.Model/Entities/MetadataFields.cs@@ -15,10 +15,6 @@ namespace MediaBrowser.Model.Entities/// </summary>Genres,/// <summary>- /// The keywords- /// </summary>- Keywords,- /// <summary>/// The production locations/// </summary>ProductionLocations,diff --git a/MediaBrowser.Model/Querying/ItemFields.cs b/MediaBrowser.Model/Querying/ItemFields.csindex c6f34d58a6..e088771b53 100644--- a/MediaBrowser.Model/Querying/ItemFields.cs+++ b/MediaBrowser.Model/Querying/ItemFields.cs@@ -92,11 +92,6 @@/// </summary>ItemCounts,- /// <summary>- /// The keywords- /// </summary>- Keywords,-/// <summary>/// The media source count/// </summary>diff --git a/MediaBrowser.Providers/Manager/ProviderUtils.cs b/MediaBrowser.Providers/Manager/ProviderUtils.csindex 042b7241b7..ff266f4c12 100644--- a/MediaBrowser.Providers/Manager/ProviderUtils.cs+++ b/MediaBrowser.Providers/Manager/ProviderUtils.cs@@ -164,14 +164,6 @@ namespace MediaBrowser.Providers.Manager}}- if (!lockedFields.Contains(MetadataFields.Keywords))- {- if (replaceData || target.Keywords.Count == 0)- {- target.Keywords = source.Keywords;- }- }-if (!lockedFields.Contains(MetadataFields.ProductionLocations)){if (replaceData || target.ProductionLocations.Count == 0)diff --git a/MediaBrowser.Providers/Movies/GenericMovieDbInfo.cs b/MediaBrowser.Providers/Movies/GenericMovieDbInfo.csindex b40e4a1201..db621e554b 100644--- a/MediaBrowser.Providers/Movies/GenericMovieDbInfo.cs+++ b/MediaBrowser.Providers/Movies/GenericMovieDbInfo.cs@@ -307,10 +307,10 @@ namespace MediaBrowser.Providers.Movies}}- if (movieData.keywords != null && movieData.keywords.keywords != null)- {- movie.Keywords = movieData.keywords.keywords.Select(i => i.name).ToList();- }+ //if (movieData.keywords != null && movieData.keywords.keywords != null)+ //{+ // movie.Keywords = movieData.keywords.keywords.Select(i => i.name).ToList();+ //}if (movieData.trailers != null && movieData.trailers.youtube != null &&movieData.trailers.youtube.Count > 0)diff --git a/MediaBrowser.XbmcMetadata/Parsers/BaseNfoParser.cs b/MediaBrowser.XbmcMetadata/Parsers/BaseNfoParser.csindex 3b642eca2d..6857d655f3 100644--- a/MediaBrowser.XbmcMetadata/Parsers/BaseNfoParser.cs+++ b/MediaBrowser.XbmcMetadata/Parsers/BaseNfoParser.cs@@ -733,17 +733,6 @@ namespace MediaBrowser.XbmcMetadata.Parsersbreak;}- case "plotkeyword":- {- var val = reader.ReadElementContentAsString();-- if (!string.IsNullOrWhiteSpace(val))- {- item.AddKeyword(val);- }- break;- }-case "fileinfo":{if (!reader.IsEmptyElement)diff --git a/MediaBrowser.XbmcMetadata/Savers/BaseNfoSaver.cs b/MediaBrowser.XbmcMetadata/Savers/BaseNfoSaver.csindex 5015dfbf94..510e6e252c 100644--- a/MediaBrowser.XbmcMetadata/Savers/BaseNfoSaver.cs+++ b/MediaBrowser.XbmcMetadata/Savers/BaseNfoSaver.cs@@ -77,7 +77,6 @@ namespace MediaBrowser.XbmcMetadata.Savers"style","imdbid","imdb_id",- "plotkeyword","country","audiodbalbumid","audiodbartistid",@@ -715,11 +714,6 @@ namespace MediaBrowser.XbmcMetadata.Savers}}- foreach (var tag in item.Keywords)- {- writer.WriteElementString("plotkeyword", tag);- }-var externalId = item.GetProviderId(MetadataProviders.AudioDbArtist);if (!string.IsNullOrEmpty(externalId))