added overview, genre, studio, tags, status, airdays, airtime to the edit metadata page

This commit is contained in:
Luis Miguel Almánzar 2013-06-08 23:04:41 -04:00
parent 9e7f8566a6
commit a247ef833c

View File

@ -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);
}