mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
fixed album save
This commit is contained in:
parent
08bef57221
commit
673bc9d31b
2 changed files with 2 additions and 6 deletions
|
@ -4,6 +4,7 @@ using MediaBrowser.Controller.Entities.Audio;
|
||||||
using MediaBrowser.Controller.Entities.TV;
|
using MediaBrowser.Controller.Entities.TV;
|
||||||
using MediaBrowser.Controller.Library;
|
using MediaBrowser.Controller.Library;
|
||||||
using MediaBrowser.Model.Dto;
|
using MediaBrowser.Model.Dto;
|
||||||
|
using MediaBrowser.Model.Entities;
|
||||||
using ServiceStack.ServiceHost;
|
using ServiceStack.ServiceHost;
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
@ -239,7 +240,7 @@ namespace MediaBrowser.Api
|
||||||
|
|
||||||
if (musicAlbum != null)
|
if (musicAlbum != null)
|
||||||
{
|
{
|
||||||
musicAlbum.MusicBrainzReleaseGroupId = request.ProviderIds["MusicBrainzReleaseGroupId"];
|
musicAlbum.MusicBrainzReleaseGroupId = request.GetProviderId("MusicBrainzReleaseGroupId");
|
||||||
}
|
}
|
||||||
|
|
||||||
var series = item as Series;
|
var series = item as Series;
|
||||||
|
|
|
@ -677,11 +677,6 @@ namespace MediaBrowser.Controller.Dto
|
||||||
/// <returns>Task.</returns>
|
/// <returns>Task.</returns>
|
||||||
private async Task AttachStudios(BaseItemDto dto, BaseItem item)
|
private async Task AttachStudios(BaseItemDto dto, BaseItem item)
|
||||||
{
|
{
|
||||||
if (item.Studios == null)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var studios = item.Studios.ToList();
|
var studios = item.Studios.ToList();
|
||||||
|
|
||||||
dto.Studios = new StudioDto[studios.Count];
|
dto.Studios = new StudioDto[studios.Count];
|
||||||
|
|
Loading…
Reference in a new issue