Merge pull request #330 from lalmanzar/edit_metadata_extra_fields
Added extra fields to EdidItemMetadata
This commit is contained in:
commit
4c230f7901
|
@ -252,6 +252,11 @@ namespace MediaBrowser.Api
|
||||||
item.CriticRatingSummary = request.CriticRatingSummary;
|
item.CriticRatingSummary = request.CriticRatingSummary;
|
||||||
item.IndexNumber = request.IndexNumber;
|
item.IndexNumber = request.IndexNumber;
|
||||||
item.ParentIndexNumber = request.ParentIndexNumber;
|
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.People = request.People.Select(x=> new PersonInfo{Name = x.Name,Role = x.Role,Type = x.Type}).ToList();
|
||||||
|
|
||||||
item.EndDate = request.EndDate;
|
item.EndDate = request.EndDate;
|
||||||
item.PremiereDate = request.PremiereDate;
|
item.PremiereDate = request.PremiereDate;
|
||||||
|
@ -288,6 +293,20 @@ namespace MediaBrowser.Api
|
||||||
song.Artist = request.Artists[0];
|
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)
|
||||||
|
{
|
||||||
|
series.Status = request.Status;
|
||||||
|
series.AirDays = request.AirDays;
|
||||||
|
series.AirTime = request.AirTime;
|
||||||
|
}
|
||||||
return _libraryManager.UpdateItem(item, CancellationToken.None);
|
return _libraryManager.UpdateItem(item, CancellationToken.None);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -462,6 +462,7 @@ namespace MediaBrowser.WebDashboard.Api
|
||||||
"clientsettings.js",
|
"clientsettings.js",
|
||||||
"dashboardpage.js",
|
"dashboardpage.js",
|
||||||
"edititemmetadata.js",
|
"edititemmetadata.js",
|
||||||
|
"edititempeople.js",
|
||||||
"edititemimages.js",
|
"edititemimages.js",
|
||||||
"edituserpage.js",
|
"edituserpage.js",
|
||||||
"gamesrecommendedpage.js",
|
"gamesrecommendedpage.js",
|
||||||
|
|
|
@ -84,6 +84,9 @@
|
||||||
<Content Include="dashboard-ui\boxsets.html">
|
<Content Include="dashboard-ui\boxsets.html">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\edititempeople.html">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="dashboard-ui\css\detailtable.css">
|
<Content Include="dashboard-ui\css\detailtable.css">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
@ -351,6 +354,9 @@
|
||||||
<Content Include="dashboard-ui\scripts\alphapicker.js">
|
<Content Include="dashboard-ui\scripts\alphapicker.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\scripts\edititempeople.js">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="dashboard-ui\scripts\edititemimages.js">
|
<Content Include="dashboard-ui\scripts\edititemimages.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user