From a247ef833c62a553d69b92c0465e20d736629b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Miguel=20Alm=C3=A1nzar?= Date: Sat, 8 Jun 2013 23:04:41 -0400 Subject: [PATCH 1/3] added overview, genre, studio, tags, status, airdays, airtime to the edit metadata page --- MediaBrowser.Api/LibraryService.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MediaBrowser.Api/LibraryService.cs b/MediaBrowser.Api/LibraryService.cs index f048c92bf..d8e3881e6 100644 --- a/MediaBrowser.Api/LibraryService.cs +++ b/MediaBrowser.Api/LibraryService.cs @@ -252,6 +252,10 @@ namespace MediaBrowser.Api item.CriticRatingSummary = request.CriticRatingSummary; item.IndexNumber = request.IndexNumber; item.ParentIndexNumber = request.ParentIndexNumber; + item.Overview = request.Overview; + item.Genres = request.Genres; + item.Tags = request.Tags; + item.Studios = request.Studios.Select(x=>x.Name).ToList(); item.EndDate = request.EndDate; item.PremiereDate = request.PremiereDate; @@ -288,6 +292,13 @@ namespace MediaBrowser.Api song.Artist = request.Artists[0]; } + var series = item as Series; + if (series != null) + { + series.Status = request.Status; + series.AirDays = request.AirDays; + series.AirTime = request.AirTime; + } return _libraryManager.UpdateItem(item, CancellationToken.None); } From ce971ea4a60f786c09f28e165bf0ac0ad03ab5fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Miguel=20Alm=C3=A1nzar?= Date: Sun, 9 Jun 2013 03:50:35 -0400 Subject: [PATCH 2/3] adding people edit screen --- MediaBrowser.Api/LibraryService.cs | 1 + MediaBrowser.WebDashboard/Api/DashboardService.cs | 1 + MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/MediaBrowser.Api/LibraryService.cs b/MediaBrowser.Api/LibraryService.cs index d8e3881e6..cee39f240 100644 --- a/MediaBrowser.Api/LibraryService.cs +++ b/MediaBrowser.Api/LibraryService.cs @@ -256,6 +256,7 @@ namespace MediaBrowser.Api item.Genres = request.Genres; item.Tags = request.Tags; item.Studios = request.Studios.Select(x=>x.Name).ToList(); + item.People = request.People.Select(x=> new PersonInfo{Name = x.Name,Role = x.Role,Type = x.Type}).ToList(); item.EndDate = request.EndDate; item.PremiereDate = request.PremiereDate; diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.cs index a44123a39..cfca97f23 100644 --- a/MediaBrowser.WebDashboard/Api/DashboardService.cs +++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs @@ -462,6 +462,7 @@ namespace MediaBrowser.WebDashboard.Api "clientsettings.js", "dashboardpage.js", "edititemmetadata.js", + "edititempeople.js", "edititemimages.js", "edituserpage.js", "gamesrecommendedpage.js", diff --git a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj index 960e492f7..809c93a0b 100644 --- a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj +++ b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj @@ -84,6 +84,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest @@ -351,6 +354,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest From e6a6bba5a861290804499b1ba9bf09a688153821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Miguel=20Alm=C3=A1nzar?= Date: Sun, 9 Jun 2013 04:26:57 -0400 Subject: [PATCH 3/3] added MusicBrainzReleaseGroupId --- MediaBrowser.Api/LibraryService.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MediaBrowser.Api/LibraryService.cs b/MediaBrowser.Api/LibraryService.cs index cee39f240..a8cd105cf 100644 --- a/MediaBrowser.Api/LibraryService.cs +++ b/MediaBrowser.Api/LibraryService.cs @@ -293,6 +293,13 @@ namespace MediaBrowser.Api song.Artist = request.Artists[0]; } + var musicAlbum = item as MusicAlbum; + + if (musicAlbum != null) + { + musicAlbum.MusicBrainzReleaseGroupId = request.ProviderIds["MusicBrainzReleaseGroupId"]; + } + var series = item as Series; if (series != null) {