fixed album save

This commit is contained in:
Luke Pulverenti 2013-07-01 12:00:00 -04:00
parent 08bef57221
commit 673bc9d31b
2 changed files with 2 additions and 6 deletions

View File

@ -4,6 +4,7 @@ using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Entities;
using ServiceStack.ServiceHost;
using System;
using System.Linq;
@ -239,7 +240,7 @@ namespace MediaBrowser.Api
if (musicAlbum != null)
{
musicAlbum.MusicBrainzReleaseGroupId = request.ProviderIds["MusicBrainzReleaseGroupId"];
musicAlbum.MusicBrainzReleaseGroupId = request.GetProviderId("MusicBrainzReleaseGroupId");
}
var series = item as Series;

View File

@ -677,11 +677,6 @@ namespace MediaBrowser.Controller.Dto
/// <returns>Task.</returns>
private async Task AttachStudios(BaseItemDto dto, BaseItem item)
{
if (item.Studios == null)
{
return;
}
var studios = item.Studios.ToList();
dto.Studios = new StudioDto[studios.Count];